mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Keep string syntax in color macros
This commit is contained in:
parent
48124f89b4
commit
da6cdf014b
24 changed files with 144 additions and 144 deletions
10
client/ui.c
10
client/ui.c
|
@ -61,19 +61,19 @@ void PrintAndLogEx(logLevel_t level, char *fmt, ...)
|
|||
|
||||
switch (level) {
|
||||
case ERR:
|
||||
strncpy(prefix, _RED_([!!]), sizeof(prefix) - 1);
|
||||
strncpy(prefix, _RED_("[!!]"), sizeof(prefix) - 1);
|
||||
break;
|
||||
case FAILED:
|
||||
strncpy(prefix, _RED_([-]), sizeof(prefix) - 1);
|
||||
strncpy(prefix, _RED_("[-]"), sizeof(prefix) - 1);
|
||||
break;
|
||||
case DEBUG:
|
||||
strncpy(prefix, _BLUE_([#]), sizeof(prefix) - 1);
|
||||
strncpy(prefix, _BLUE_("[#]"), sizeof(prefix) - 1);
|
||||
break;
|
||||
case SUCCESS:
|
||||
strncpy(prefix, _GREEN_([+]), sizeof(prefix) - 1);
|
||||
strncpy(prefix, _GREEN_("[+]"), sizeof(prefix) - 1);
|
||||
break;
|
||||
case WARNING:
|
||||
strncpy(prefix, _CYAN_([!]), sizeof(prefix) - 1);
|
||||
strncpy(prefix, _CYAN_("[!]"), sizeof(prefix) - 1);
|
||||
break;
|
||||
default:
|
||||
strncpy(prefix, prefixes[level], sizeof(prefix) - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue