Keep string syntax in color macros
This commit is contained in:
1 parent
48124f89b4
commit
da6cdf014b
24 files changed
+144
-144
No files matched your search
+5
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user