summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilhem Bichot <guilhem.bichot@oracle.com>2011-06-07 09:53:37 +0200
committerGuilhem Bichot <guilhem.bichot@oracle.com>2011-06-07 09:53:37 +0200
commitaf5c95c2991508b8a59a0ad9ac28d6461f77609d (patch)
treee7de2886feb5c4f0fae6550c89b54397054a6636
parente1aa1f874ec6ac67ee14cabd6ba3c5f28bc3a79f (diff)
downloadmariadb-git-af5c95c2991508b8a59a0ad9ac28d6461f77609d.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.
-rw-r--r--extra/perror.c9
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])