mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
added warning prefix
This commit is contained in:
parent
4d2d65a0c6
commit
2987fdb187
1 changed files with 5 additions and 5 deletions
|
@ -2554,18 +2554,18 @@ static void arg_lit_errorfn(
|
||||||
|
|
||||||
switch (errorcode) {
|
switch (errorcode) {
|
||||||
case EMINCOUNT:
|
case EMINCOUNT:
|
||||||
fprintf(fp, "%s: missing option ", progname);
|
fprintf(fp, "[!] %s: missing option ", progname);
|
||||||
arg_print_option(fp, shortopts, longopts, datatype, "\n");
|
arg_print_option(fp, shortopts, longopts, datatype, "\n");
|
||||||
fprintf(fp, "\n");
|
fprintf(fp, "\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EMAXCOUNT:
|
case EMAXCOUNT:
|
||||||
fprintf(fp, "%s: extraneous option ", progname);
|
fprintf(fp, "[!] %s: extraneous option ", progname);
|
||||||
arg_print_option(fp, shortopts, longopts, datatype, "\n");
|
arg_print_option(fp, shortopts, longopts, datatype, "\n");
|
||||||
break;
|
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));
|
errorcode, argval, progname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2859,7 +2859,7 @@ static void arg_rex_errorfn(struct arg_rex *parent,
|
||||||
/* make argval NULL safe */
|
/* make argval NULL safe */
|
||||||
argval = argval ? argval : "";
|
argval = argval ? argval : "";
|
||||||
|
|
||||||
fprintf(fp, "%s: ", progname);
|
fprintf(fp, "[!] %s: ", progname);
|
||||||
switch (errorcode) {
|
switch (errorcode) {
|
||||||
case EMINCOUNT:
|
case EMINCOUNT:
|
||||||
fputs("missing option ", fp);
|
fputs("missing option ", fp);
|
||||||
|
@ -3790,7 +3790,7 @@ static void arg_str_errorfn(
|
||||||
/* make argval NULL safe */
|
/* make argval NULL safe */
|
||||||
argval = argval ? argval : "";
|
argval = argval ? argval : "";
|
||||||
|
|
||||||
fprintf(fp, "%s: ", progname);
|
fprintf(fp, "[!] %s: ", progname);
|
||||||
switch (errorcode) {
|
switch (errorcode) {
|
||||||
case EMINCOUNT:
|
case EMINCOUNT:
|
||||||
fputs("missing option ", fp);
|
fputs("missing option ", fp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue