Author: stuge
Date: 2009-01-26 00:52:45 +0100 (Mon, 26 Jan 2009)
New Revision: 3895
Modified:
trunk/util/flashrom/82802ab.c
trunk/util/flashrom/am29f040b.c
trunk/util/flashrom/en29f002a.c
trunk/util/flashrom/jedec.c
trunk/util/flashrom/m29f400bt.c
trunk/util/flashrom/mx29f002.c
trunk/util/flashrom/sharplhf00l04.c
trunk/util/flashrom/spi.c
trunk/util/flashrom/sst28sf040.c
trunk/util/flashrom/sst49lfxxxc.c
trunk/util/flashrom/stm50flw0x0x.c
trunk/util/flashrom/w29ee011.c
trunk/util/flashrom/w39v040c.c
Log:
flashrom: Beautify flash chip ID verbose printout a little, always use %02x.
Signed-off-by: Peter Stuge <peter(a)stuge.se>
Acked-by: Peter Stuge <peter(a)stuge.se>
Modified: trunk/util/flashrom/82802ab.c
===================================================================
--- trunk/util/flashrom/82802ab.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/82802ab.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/am29f040b.c
===================================================================
--- trunk/util/flashrom/am29f040b.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/am29f040b.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/en29f002a.c
===================================================================
--- trunk/util/flashrom/en29f002a.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/en29f002a.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/jedec.c
===================================================================
--- trunk/util/flashrom/jedec.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/jedec.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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");
Modified: trunk/util/flashrom/m29f400bt.c
===================================================================
--- trunk/util/flashrom/m29f400bt.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/m29f400bt.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/mx29f002.c
===================================================================
--- trunk/util/flashrom/mx29f002.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/mx29f002.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/sharplhf00l04.c
===================================================================
--- trunk/util/flashrom/sharplhf00l04.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/sharplhf00l04.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/spi.c
===================================================================
--- trunk/util/flashrom/spi.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/spi.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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) {
Modified: trunk/util/flashrom/sst28sf040.c
===================================================================
--- trunk/util/flashrom/sst28sf040.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/sst28sf040.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/sst49lfxxxc.c
===================================================================
--- trunk/util/flashrom/sst49lfxxxc.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/sst49lfxxxc.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/stm50flw0x0x.c
===================================================================
--- trunk/util/flashrom/stm50flw0x0x.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/stm50flw0x0x.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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)
Modified: trunk/util/flashrom/w29ee011.c
===================================================================
--- trunk/util/flashrom/w29ee011.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/w29ee011.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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;
Modified: trunk/util/flashrom/w39v040c.c
===================================================================
--- trunk/util/flashrom/w39v040c.c 2009-01-25 20:41:51 UTC (rev 3894)
+++ trunk/util/flashrom/w39v040c.c 2009-01-25 23:52:45 UTC (rev 3895)
@@ -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");