Merge pull request #776 from slurdge/pmlog

Happy colors for messages coming from pm3
This commit is contained in:
Philippe Teuwen 2020-06-11 16:30:38 +02:00 committed by GitHub
commit ed2ff985bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,7 +289,7 @@ static void PacketResponseReceived(PacketResponseNG *packet) {
} }
if (flag & FLAG_LOG) { if (flag & FLAG_LOG) {
PrintAndLogEx(NORMAL, "#db# %s", s); PrintAndLogEx(NORMAL, "[" _MAGENTA_("pm3") "] ["_BLUE_("#")"] " "%s", s);
} else { } else {
if (flag & FLAG_INPLACE) if (flag & FLAG_INPLACE)
printf("\r"); printf("\r");
@ -303,7 +303,7 @@ static void PacketResponseReceived(PacketResponseNG *packet) {
} }
case CMD_DEBUG_PRINT_INTEGERS: { case CMD_DEBUG_PRINT_INTEGERS: {
if (! packet->ng) if (! packet->ng)
PrintAndLogEx(NORMAL, "#db# %" PRIx64 ", %" PRIx64 ", %" PRIx64 "", packet->oldarg[0], packet->oldarg[1], packet->oldarg[2]); PrintAndLogEx(NORMAL, "[" _MAGENTA_("pm3") "] ["_BLUE_("#")"] " "%" PRIx64 ", %" PRIx64 ", %" PRIx64 "", packet->oldarg[0], packet->oldarg[1], packet->oldarg[2]);
break; break;
} }
// iceman: hw status - down the path on device, runs printusbspeed which starts sending a lot of // iceman: hw status - down the path on device, runs printusbspeed which starts sending a lot of