Merge pull request #776 from slurdge/pmlog
Happy colors for messages coming from pm3
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user