From a5d05e8d4256f50977ed94bbe4c9e94e5ea21bd3 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 30 Apr 2019 20:23:15 +0200 Subject: [PATCH] Remove cmd_debug from flasher, we've COMMS_DEBUG_RAW if needed --- client/flasher.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/client/flasher.c b/client/flasher.c index b98f02a8b..8e1f44aa9 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -21,21 +21,6 @@ #define MAX_FILES 4 -void cmd_debug(PacketCommandOLD *c) { - // Debug - PrintAndLogEx(NORMAL, "PacketCommandOLD length[len=%zu]", sizeof(PacketCommandOLD)); - PrintAndLogEx(NORMAL, " cmd[len=%zu]: %016" PRIx64, sizeof(c->cmd), c->cmd); - PrintAndLogEx(NORMAL, " arg0[len=%zu]: %016" PRIx64, sizeof(c->arg[0]), c->arg[0]); - PrintAndLogEx(NORMAL, " arg1[len=%zu]: %016" PRIx64, sizeof(c->arg[1]), c->arg[1]); - PrintAndLogEx(NORMAL, " arg2[len=%zu]: %016" PRIx64, sizeof(c->arg[2]), c->arg[2]); - PrintAndLogEx(NORMAL, " data[len=%zu]: ", sizeof(c->d.asBytes)); - - for (size_t i = 0; i < 16; i++) - PrintAndLogEx(NORMAL, "%02x", c->d.asBytes[i]); - - PrintAndLogEx(NORMAL, "..."); -} - static void usage(char *argv0) { PrintAndLogEx(NORMAL, "Usage: %s [-b] image.elf [image.elf...]\n", argv0); PrintAndLogEx(NORMAL, "\t-b\tEnable flashing of bootloader area (DANGEROUS)\n");