Commit efb9330d authored by hongming's avatar hongming

Change the %i to %x in print function dev/sdb-storage.c

parent 130b7ff8
...@@ -222,7 +222,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr) ...@@ -222,7 +222,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
break; break;
} }
if (magic == SDB_MAGIC) { if (magic == SDB_MAGIC) {
pp_printf("sdbfs: found at %i in Flash\n", pp_printf("sdbfs: found at %x in Flash\n",
entry_points_flash[i]); entry_points_flash[i]);
wrc_sdb.drvdata = NULL; wrc_sdb.drvdata = NULL;
wrc_sdb.blocksize = storage_cfg.blocksize; wrc_sdb.blocksize = storage_cfg.blocksize;
...@@ -246,7 +246,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr) ...@@ -246,7 +246,7 @@ void storage_init(int chosen_i2cif, int chosen_i2c_addr)
break; break;
} }
if (magic == SDB_MAGIC) { if (magic == SDB_MAGIC) {
pp_printf("sdbfs: found at %i in W1\n", entry_points_eeprom[i]); pp_printf("sdbfs: found at %x in W1\n", entry_points_eeprom[i]);
/* override default i2c settings with w1 ones */ /* override default i2c settings with w1 ones */
wrc_sdb.drvdata = &wrpc_w1_bus; wrc_sdb.drvdata = &wrpc_w1_bus;
wrc_sdb.blocksize = 1; wrc_sdb.blocksize = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment