summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cbi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/cbi.c b/common/cbi.c
index 8ec4472b24..e4dc001184 100644
--- a/common/cbi.c
+++ b/common/cbi.c
@@ -335,14 +335,11 @@ static void dump_flash(void)
uint8_t buf[16];
int i;
for (i = 0; i < CBI_EEPROM_SIZE; i += sizeof(buf)) {
- int j;
if (read_eeprom(i, buf, sizeof(buf))) {
ccprintf("\nFailed to read EEPROM\n");
return;
}
- for (j = 0; j < sizeof(buf); j++)
- ccprintf(" %02x", buf[j]);
- ccprintf("\n");
+ hexdump(buf, sizeof(buf));
}
}