mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 23:41:50 +00:00
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>
This commit is contained in:
parent
3f05f087c3
commit
6478a7ee3b
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ static int eeprom_execute_command(enum eeprom_action action, int i2c_bus,
|
||||||
{
|
{
|
||||||
int rcode = 0;
|
int rcode = 0;
|
||||||
const char *const fmt =
|
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
|
#ifdef CONFIG_CMD_EEPROM_LAYOUT
|
||||||
struct eeprom_layout layout;
|
struct eeprom_layout layout;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue