Beautify flash chip ID verbose printout a little, always use %02x
Corresponding to flashrom svn r390 and coreboot v2 svn r3895.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
diff --git a/82802ab.c b/82802ab.c
index a191093..5e5b1a5 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -69,7 +69,7 @@
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 != flash->manufacture_id || id2 != flash->model_id)
return 0;
diff --git a/am29f040b.c b/am29f040b.c
index da12277..fbe435b 100644
--- a/am29f040b.c
+++ b/am29f040b.c
@@ -83,7 +83,7 @@
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/en29f002a.c b/en29f002a.c
index 904b58b..c70b37b 100644
--- a/en29f002a.c
+++ b/en29f002a.c
@@ -49,7 +49,7 @@
*(volatile uint8_t *)(bios + 0x2AA) = 0x55;
*(volatile uint8_t *)(bios + 0x555) = 0xF0;
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/jedec.c b/jedec.c
index 58a750a..9dbaa53 100644
--- a/jedec.c
+++ b/jedec.c
@@ -130,7 +130,7 @@
*(volatile uint8_t *)(bios + 0x5555) = 0xF0;
myusec_delay(40);
- printf_debug("%s: id1 0x%x, id2 0x%x", __FUNCTION__, largeid1, largeid2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x", __FUNCTION__, largeid1, largeid2);
if (!oddparity(id1))
printf_debug(", id1 parity violation");
printf_debug("\n");
diff --git a/m29f400bt.c b/m29f400bt.c
index bc70449..d0b040d 100644
--- a/m29f400bt.c
+++ b/m29f400bt.c
@@ -75,7 +75,7 @@
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/mx29f002.c b/mx29f002.c
index 7de4502..30adab1 100644
--- a/mx29f002.c
+++ b/mx29f002.c
@@ -38,7 +38,7 @@
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/sharplhf00l04.c b/sharplhf00l04.c
index da7dc3f..7db14fe 100644
--- a/sharplhf00l04.c
+++ b/sharplhf00l04.c
@@ -61,7 +61,7 @@
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 != flash->manufacture_id || id2 != flash->model_id)
return 0;
diff --git a/spi.c b/spi.c
index b31a6b8..8a7b79f 100644
--- a/spi.c
+++ b/spi.c
@@ -126,7 +126,7 @@
model_id = (readarr[1] << 8) | readarr[2];
}
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, manuf_id,
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, manuf_id,
model_id);
if (manuf_id == flash->manufacture_id && model_id == flash->model_id) {
diff --git a/sst28sf040.c b/sst28sf040.c
index 85fb9d0..89be9d8 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -112,7 +112,7 @@
*bios = RESET;
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
index b6693ef..2c9a87b 100644
--- a/sst49lfxxxc.c
+++ b/sst49lfxxxc.c
@@ -135,7 +135,7 @@
*bios = RESET;
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (!(id1 == flash->manufacture_id && id2 == flash->model_id))
return 0;
diff --git a/stm50flw0x0x.c b/stm50flw0x0x.c
index 67cf62c..c06bab9 100644
--- a/stm50flw0x0x.c
+++ b/stm50flw0x0x.c
@@ -80,7 +80,7 @@
*(volatile uint8_t *)(bios + 0x5555) = 0xF0;
myusec_delay(40);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, largeid1,
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, largeid1,
largeid2);
if (largeid1 != flash->manufacture_id || largeid2 != flash->model_id)
diff --git a/w29ee011.c b/w29ee011.c
index d54b038..fa3aa7c 100644
--- a/w29ee011.c
+++ b/w29ee011.c
@@ -62,7 +62,7 @@
*(volatile uint8_t *)(bios + 0x5555) = 0xF0;
myusec_delay(10);
- printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x\n", __FUNCTION__, id1, id2);
if (id1 == flash->manufacture_id && id2 == flash->model_id)
return 1;
diff --git a/w39v040c.c b/w39v040c.c
index ce02596..37549d7 100644
--- a/w39v040c.c
+++ b/w39v040c.c
@@ -44,7 +44,7 @@
*(volatile uint8_t *)(bios + 0x5555) = 0xF0;
myusec_delay(40);
- printf_debug("%s: id1 0x%x, id2 0x%x", __func__, id1, id2);
+ printf_debug("%s: id1 0x%02x, id2 0x%02x", __func__, id1, id2);
if (!oddparity(id1))
printf_debug(", id1 parity violation");
printf_debug("\n");