summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/util.c
diff options
context:
space:
mode:
authordzwdz2022-08-20 11:11:57 +0200
committerdzwdz2022-08-20 11:11:57 +0200
commitf22f019aeba00ccb3cc35fe763c3e87bf5690040 (patch)
tree6f7338b526dca6eebc865096dbdbd3af90cda335 /src/user/app/ethdump/util.c
parent2a16c1f6f9118e7127d532421ae19b959b3f1d87 (diff)
user/ethdump: turn into a file server
Diffstat (limited to 'src/user/app/ethdump/util.c')
-rw-r--r--src/user/app/ethdump/util.c14
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) {