summaryrefslogtreecommitdiff
path: root/src/lib/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hexdump.c')
-rw-r--r--src/lib/hexdump.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c
index 82b0a3ba5b..61009203eb 100644
--- a/src/lib/hexdump.c
+++ b/src/lib/hexdump.c
@@ -62,4 +62,20 @@ void hexdump(const void* memory, size_t length)
}
}
+void hexdump32(char LEVEL, const void *d, int len)
+{
+ int count=0;
+
+ while (len > 0) {
+ if (count % 8 == 0) {
+ printk(LEVEL,"\n");
+ printk(LEVEL, "%p:", d);
+ }
+ printk(LEVEL, " 0x%08lx", *(unsigned long*)d);
+ count++;
+ len--;
+ d += 4;
+ }
+ printk(LEVEL,"\n\n");
+}