util/nvmutil: better hexdump

this is a more generic one that i implemented
for "lottery.c" (which is really just a tester
of my rset function in lib/rand.c)

i could probably actually write a full hexdump
program in libreboot-utils to be honest.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-29 07:21:08 +01:00
parent 546565f321
commit afe2e71c01
4 changed files with 47 additions and 76 deletions
+1 -1
View File
@@ -395,6 +395,7 @@ int dcat(const char *s, size_t n,
*/
unsigned short hextonum(char ch_s);
void spew_hex(const void *data, size_t len);
void *mkrbuf(size_t n);
void rset(void *buf, size_t n);
void *mkrbuf(size_t n);
@@ -406,7 +407,6 @@ size_t rsize(size_t n);
void cmd_helper_dump(void);
void print_mac_from_nvm(size_t partnum);
void hexdump(size_t partnum);
/* Helper functions for command: swap
*/