diff options
Diffstat (limited to 'src/user/app/ethdump/util.c')
-rw-r--r-- | src/user/app/ethdump/util.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/user/app/ethdump/util.c b/src/user/app/ethdump/util.c index 8c29340..7c484f3 100644 --- a/src/user/app/ethdump/util.c +++ b/src/user/app/ethdump/util.c @@ -1,19 +1,5 @@ #include "util.h" -void hexdump(const void *vbuf, size_t len) { - const uint8_t *buf = vbuf; - for (size_t i = 0; i < len; i += 16) { - printf("%08x ", i); - - for (size_t j = i; j < i + 8 && j < len; j++) - printf("%02x ", buf[j]); - printf(" "); - for (size_t j = i + 8; j < i + 16 && j < len; j++) - printf("%02x ", buf[j]); - printf("\n"); - } -} - /* https://www.w3.org/TR/PNG/#D-CRCAppendix */ static uint32_t crc_table[256]; uint32_t crc32(const uint8_t *buf, size_t len) { |