summaryrefslogtreecommitdiff
path: root/cmd/eeprom.c
diff options
context:
space:
mode:
authorKlaus H. Sorensen <khso@prevas.dk>2019-12-11 11:18:29 +0000
committerTom Rini <trini@konsulko.com>2020-01-10 14:18:26 -0500
commit6478a7ee3bae03bab4d9e092d91157a75d9fcf24 (patch)
treed87d20ce443befabe2027f6ed70605e9c1e7194c /cmd/eeprom.c
parent3f05f087c37ec6b408dfd3b0a864c59749b5b8e1 (diff)
cmd/eeprom.c: prepend 0x to hex numbers in output message format
If the numbers do not happen to contain any digits from [a-f], it's not clear that they are base 16. Signed-off-by: Klaus H. Sorensen <khso@prevas.dk> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'cmd/eeprom.c')
-rw-r--r--cmd/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index 4a1569baf3..667149e2d4 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -308,7 +308,7 @@ static int eeprom_execute_command(enum eeprom_action action, int i2c_bus,
{
int rcode = 0;
const char *const fmt =
- "\nEEPROM @0x%lX %s: addr %08lx off %04lx count %ld ... ";
+ "\nEEPROM @0x%lX %s: addr 0x%08lx off 0x%04lx count %ld ... ";
#ifdef CONFIG_CMD_EEPROM_LAYOUT
struct eeprom_layout layout;
#endif