diff options
author | unknown <msvensson@neptunus.(none)> | 2006-11-30 12:14:28 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-11-30 12:14:28 +0100 |
commit | 88dd3c59f978a429feb65464e6d280c115c5978a (patch) | |
tree | 766931b7382f87eb219acf288bff5667b0a40c7c /mysys | |
parent | fc9a6bc52850f99aa8b52780a8ffeb9018619b05 (diff) | |
parent | d242920922da3db9a51e1ef9528288ace028d645 (diff) | |
download | mariadb-git-88dd3c59f978a429feb65464e6d280c115c5978a.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
mysql-test/mysql-test-run.pl:
Auto merged
mysys/my_getopt.c:
Auto merged
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_getopt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c index 95dc5afeae9..9b62482a404 100644 --- a/mysys/my_getopt.c +++ b/mysys/my_getopt.c @@ -59,11 +59,15 @@ char *disabled_my_option= (char*) "0"; my_bool my_getopt_print_errors= 1; -static void default_reporter(enum loglevel level __attribute__((unused)), +static void default_reporter(enum loglevel level, const char *format, ...) { va_list args; va_start(args, format); + if (level == WARNING_LEVEL) + fprintf(stderr, "%s", "Warning: "); + else if (level == INFORMATION_LEVEL) + fprintf(stderr, "%s", "Info: "); vfprintf(stderr, format, args); va_end(args); } |