summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/lib.h1
-rw-r--r--src/lib/hexdump.c18
-rw-r--r--src/northbridge/intel/sandybridge/raminit_mrc.c2
3 files changed, 1 insertions, 20 deletions
diff --git a/src/include/lib.h b/src/include/lib.h
index 359626c964..8e8bab55c1 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -29,7 +29,6 @@ int checkstack(void *top_of_stack, int core);
* https://packages.debian.org/jessie/amd64/vim-common/filelist
*/
void hexdump(const void *memory, size_t length);
-void hexdump32(char LEVEL, const void *d, size_t len);
/*
* hexstrtobin - Turn a string of ASCII hex characters into binary
diff --git a/src/lib/hexdump.c b/src/lib/hexdump.c
index 90446c1481..533411f6f6 100644
--- a/src/lib/hexdump.c
+++ b/src/lib/hexdump.c
@@ -48,21 +48,3 @@ void hexdump(const void *memory, size_t length)
}
}
}
-
-void hexdump32(char LEVEL, const void *d, size_t len)
-{
- size_t 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");
-}
diff --git a/src/northbridge/intel/sandybridge/raminit_mrc.c b/src/northbridge/intel/sandybridge/raminit_mrc.c
index 21de0b2ea4..43619cd592 100644
--- a/src/northbridge/intel/sandybridge/raminit_mrc.c
+++ b/src/northbridge/intel/sandybridge/raminit_mrc.c
@@ -371,7 +371,7 @@ void perform_raminit(int s3resume)
} else {
printk(BIOS_ERR, "Could not parse MRC_VAR data\n");
- hexdump32(BIOS_ERR, mrc_var, sizeof(*mrc_var) / sizeof(u32));
+ hexdump(mrc_var, sizeof(*mrc_var));
}
const int cbmem_was_initted = !cbmem_recovery(s3resume);