From f22f019aeba00ccb3cc35fe763c3e87bf5690040 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Aug 2022 11:11:57 +0200 Subject: user/ethdump: turn into a file server --- src/user/app/ethdump/util.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/user/app/ethdump/util.c') 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) { -- cgit v1.2.3