summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2013-12-16 06:46:00 +0100
committerRonald G. Minnich <rminnich@gmail.com>2013-12-16 17:53:58 +0100
commit86545f7978eac21d925f1b0ce874ca03fbd24c5c (patch)
tree7364863b4bbb98beaa59f8dcd92339fc02aabf20 /payloads/libpayload/include
parent9bf05de5ab2842fc83cea8da5e9058417fc4bc24 (diff)
libpayload: Add simple hexdump function
- prints hex and ascii - detects duplicate all zero lines Change-Id: I084b3072bc05725b23c5c3ca0dbf1533f164a08c Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/63660 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: Stefan Reinauer <reinauer@chromium.org> Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Author: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/4393 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/libpayload.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index f23fb8763b..8e03c0b5b5 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -293,6 +293,7 @@ long int labs(long int j);
long long int llabs(long long int j);
u8 bin2hex(u8 b);
u8 hex2bin(u8 h);
+void hexdump(void *memory, int length);
void fatal(const char *msg) __attribute__ ((noreturn));
/** @} */