less emoji

This commit is contained in:
Philippe Teuwen 2020-03-16 21:45:08 +01:00
commit 0a616d61f7

View file

@ -146,40 +146,30 @@ void PrintAndLogEx(logLevel_t level, const char *fmt, ...) {
switch (level) { switch (level) {
case ERR: case ERR:
if (session.emoji_mode == EMOJI) if (session.emoji_mode == EMOJI)
strncpy(prefix, " :rotating_light: ", sizeof(prefix) - 1); strncpy(prefix, _RED_("[!!]") " :rotating_light: ", sizeof(prefix) - 1);
else else
strncpy(prefix, _RED_("[!!]"), sizeof(prefix) - 1); strncpy(prefix, _RED_("[!!]"), sizeof(prefix) - 1);
stream = stderr; stream = stderr;
break; break;
case FAILED: case FAILED:
if (session.emoji_mode == EMOJI) if (session.emoji_mode == EMOJI)
strncpy(prefix, " :no_entry: ", sizeof(prefix) - 1); strncpy(prefix, _RED_("[-]") " :no_entry: ", sizeof(prefix) - 1);
else else
strncpy(prefix, _RED_("[-]"), sizeof(prefix) - 1); strncpy(prefix, _RED_("[-]"), sizeof(prefix) - 1);
break; break;
case DEBUG: case DEBUG:
if (session.emoji_mode == EMOJI)
strncpy(prefix, " :speech_balloon: ", sizeof(prefix) - 1);
else
strncpy(prefix, _BLUE_("[#]"), sizeof(prefix) - 1); strncpy(prefix, _BLUE_("[#]"), sizeof(prefix) - 1);
break;
case HINT: case HINT:
case SUCCESS: case SUCCESS:
if (session.emoji_mode == EMOJI)
strncpy(prefix, " :star: ", sizeof(prefix) - 1);
else
strncpy(prefix, _GREEN_("[+]"), sizeof(prefix) - 1); strncpy(prefix, _GREEN_("[+]"), sizeof(prefix) - 1);
break; break;
case WARNING: case WARNING:
if (session.emoji_mode == EMOJI) if (session.emoji_mode == EMOJI)
strncpy(prefix, " :warning: ", sizeof(prefix) - 1); strncpy(prefix, _CYAN_("[!]") " :warning: ", sizeof(prefix) - 1);
else else
strncpy(prefix, _CYAN_("[!]"), sizeof(prefix) - 1); strncpy(prefix, _CYAN_("[!]"), sizeof(prefix) - 1);
break; break;
case INFO: case INFO:
if (session.emoji_mode == EMOJI)
strncpy(prefix, " :information_source: ", sizeof(prefix) - 1);
else
strncpy(prefix, _YELLOW_("[=]"), sizeof(prefix) - 1); strncpy(prefix, _YELLOW_("[=]"), sizeof(prefix) - 1);
break; break;
case INPLACE: case INPLACE: