Skip to content

Commit

Permalink
show ERRORs only if ERROR count > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 17, 2024
1 parent 627021d commit a575cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5461,8 +5461,8 @@ if(rooterrorflag == true) exit(EXIT_FAILURE);
if((monitormodeflag == true) || (interfacelistflag == true) || (interfaceinfoflag == true) || (interfacelistshortflag == true)) return EXIT_SUCCESS;
fprintf(stdout, "\n\033[?25h");
errorcount += errortxcount;
fprintf(stderr, "%u ERROR(s) during runtime\n", errorcount);
fprintf(stderr, "%u TX ERROR(s) during runtime\n", errortxcount);
if(errorcount > 0) fprintf(stderr, "%u ERROR(s) during runtime\n", errorcount);
if(errortxcount > 0) fprintf(stderr, "%u TX ERROR(s) during runtime\n", errortxcount);
if(errorcount > 0) fprintf(stderr, "Possible reasons:\n"
" driver is broken\n"
" driver is busy (misconfigured system, other services access the INTERFACE)\n");
Expand Down

0 comments on commit a575cb7

Please sign in to comment.