X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Feeprom.c;h=792415ef93b6848b7348611de7da436624127e76;hb=b79fdc76978515fba2c4f3b5b4f2e679c5ff1463;hp=19953df082fbc7c2af425c893f5ded133bf94dcc;hpb=dcf722ece6aad0c1512a26cdefc2f74a192fa9d2;p=oweals%2Fu-boot.git diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 19953df082..792415ef93 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -60,7 +61,7 @@ #endif #if defined(CONFIG_DM_I2C) -int eeprom_i2c_bus; +static int eeprom_i2c_bus; #endif __weak int eeprom_write_enable(unsigned dev_addr, int state) @@ -307,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