diff options
author | Guilhem Bichot <guilhem.bichot@oracle.com> | 2011-06-07 09:53:37 +0200 |
---|---|---|
committer | Guilhem Bichot <guilhem.bichot@oracle.com> | 2011-06-07 09:53:37 +0200 |
commit | 0bebf19ad982ecc205ded2ec71a8e45d262bab74 (patch) | |
tree | e7de2886feb5c4f0fae6550c89b54397054a6636 /extra | |
parent | 7769a22622c7c6306ae6736844ed7d068d138af2 (diff) | |
download | mariadb-git-0bebf19ad982ecc205ded2ec71a8e45d262bab74.tar.gz |
This patch is for 5.5.
WL#5914 remove option "--all" of the "perror" program.
In 5.5 we just give a deprecation warning; in trunk we remove the option.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/perror.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extra/perror.c b/extra/perror.c index 3c00b9b11d7..e9d73a665e6 100644 --- a/extra/perror.c +++ b/extra/perror.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 MySQL AB +/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -11,7 +11,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* Return error-text for system error messages and handler messages */ @@ -64,7 +64,8 @@ static struct my_option my_long_options[] = &ndb_code, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, #endif #ifdef HAVE_SYS_ERRLIST - {"all", 'a', "Print all the error messages and the number.", + {"all", 'a', "Print all the error messages and the number. Deprecated," + " will be removed in a future release.", &print_all_codes, &print_all_codes, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, #endif @@ -295,6 +296,8 @@ int main(int argc,char *argv[]) if (print_all_codes) { HA_ERRORS *ha_err_ptr; + printf("WARNING: option '-a/--all' is deprecated and will be removed in a" + " future release.\n"); for (code=1 ; code < sys_nerr ; code++) { if (sys_errlist[code] && sys_errlist[code][0]) |