From 2987fdb18734fc0bb012b36f0a2000815d39e991 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 23 Jan 2021 19:08:45 +0100 Subject: [PATCH] added warning prefix --- client/deps/cliparser/argtable3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/deps/cliparser/argtable3.c b/client/deps/cliparser/argtable3.c index 2fe32b082..43701d735 100644 --- a/client/deps/cliparser/argtable3.c +++ b/client/deps/cliparser/argtable3.c @@ -2554,18 +2554,18 @@ static void arg_lit_errorfn( switch (errorcode) { case EMINCOUNT: - fprintf(fp, "%s: missing option ", progname); + fprintf(fp, "[!] %s: missing option ", progname); arg_print_option(fp, shortopts, longopts, datatype, "\n"); fprintf(fp, "\n"); break; case EMAXCOUNT: - fprintf(fp, "%s: extraneous option ", progname); + fprintf(fp, "[!] %s: extraneous option ", progname); arg_print_option(fp, shortopts, longopts, datatype, "\n"); break; } - ARG_TRACE(("%s:errorfn(%p, %p, %d, %s, %s)\n", __FILE__, parent, fp, + ARG_TRACE(("[!] %s:errorfn(%p, %p, %d, %s, %s)\n", __FILE__, parent, fp, errorcode, argval, progname)); } @@ -2859,7 +2859,7 @@ static void arg_rex_errorfn(struct arg_rex *parent, /* make argval NULL safe */ argval = argval ? argval : ""; - fprintf(fp, "%s: ", progname); + fprintf(fp, "[!] %s: ", progname); switch (errorcode) { case EMINCOUNT: fputs("missing option ", fp); @@ -3790,7 +3790,7 @@ static void arg_str_errorfn( /* make argval NULL safe */ argval = argval ? argval : ""; - fprintf(fp, "%s: ", progname); + fprintf(fp, "[!] %s: ", progname); switch (errorcode) { case EMINCOUNT: fputs("missing option ", fp);