From 19bdfd25773edf061d13b6e6ed6c477861833fd0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 15 Sep 2019 20:46:21 +0200 Subject: [PATCH] chg some printing of blocks --- client/cmdlft55xx.c | 8 ++++---- client/util.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 73932f19a..1afa169c9 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -486,9 +486,9 @@ int t55xxWrite(uint8_t block, bool page1, bool usepwd, bool testMode, uint32_t p } void printT5xxHeader(uint8_t page) { - PrintAndLogEx(NORMAL, "Reading Page %d:", page); - PrintAndLogEx(NORMAL, "blk | hex data | binary | ascii"); - PrintAndLogEx(NORMAL, "----+----------+----------------------------------+-------"); + PrintAndLogEx(SUCCESS, "Reading Page %d:", page); + PrintAndLogEx(SUCCESS, "blk | hex data | binary | ascii"); + PrintAndLogEx(SUCCESS, "----+----------+----------------------------------+-------"); } static int CmdT55xxSetConfig(const char *Cmd) { @@ -1185,7 +1185,7 @@ void printT55xxBlock(uint8_t blockNum) { num_to_bytes(blockData, 4, bytes); - PrintAndLogEx(NORMAL, " %02d | %08X | %s | %s", blockNum, blockData, sprint_bin(DemodBuffer + config.offset, 32), sprint_ascii(bytes, 4)); + PrintAndLogEx(SUCCESS, " %02d | %08X | %s | %s", blockNum, blockData, sprint_bin(DemodBuffer + config.offset, 32), sprint_ascii(bytes, 4)); } static bool testModulation(uint8_t mode, uint8_t modread) { diff --git a/client/util.c b/client/util.c index 1f5a29781..6877e8835 100644 --- a/client/util.c +++ b/client/util.c @@ -383,14 +383,14 @@ char *sprint_ascii(const uint8_t *data, const size_t len) { } void print_blocks(uint32_t *data, size_t len) { - PrintAndLogEx(NORMAL, "Blk | Data "); - PrintAndLogEx(NORMAL, "----+------------"); + PrintAndLogEx(SUCCESS, "Blk | Data "); + PrintAndLogEx(SUCCESS, "----+------------"); if (!data) { PrintAndLogEx(ERR, "..empty data"); } else { for (uint8_t i = 0; i < len; i++) - PrintAndLogEx(NORMAL, "%02d | 0x%08X", i, data[i]); + PrintAndLogEx(SUCCESS, " %02d | 0x%08X", i, data[i]); } }