summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-25 23:52:45 +0000
committerPeter Stuge <peter@stuge.se>2009-01-25 23:52:45 +0000
commit2450419294dc9bdad5f1822cc5ecc333c5520369 (patch)
tree2db6a4585f6b41053836350c8f615a318c92c345 /util/flashrom
parent7e6ff8bfc0e5c9a5238f046892dc19bcbec55780 (diff)
flashrom: Beautify flash chip ID verbose printout a little, always use %02x.
Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3895 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/82802ab.c2
-rw-r--r--util/flashrom/am29f040b.c2
-rw-r--r--util/flashrom/en29f002a.c2
-rw-r--r--util/flashrom/jedec.c2
-rw-r--r--util/flashrom/m29f400bt.c2
-rw-r--r--util/flashrom/mx29f002.c2
-rw-r--r--util/flashrom/sharplhf00l04.c2
-rw-r--r--util/flashrom/spi.c2
-rw-r--r--util/flashrom/sst28sf040.c2
-rw-r--r--util/flashrom/sst49lfxxxc.c2
-rw-r--r--util/flashrom/stm50flw0x0x.c2
-rw-r--r--util/flashrom/w29ee011.c2
-rw-r--r--util/flashrom/w39v040c.c2
13 files changed, 13 insertions, 13 deletions
diff --git a/util/flashrom/82802ab.c b/util/flashrom/82802ab.c
index a191093ccf..5e5b1a59ad 100644
--- a/util/flashrom/82802ab.c
+++ b/util/flashrom/82802ab.c
@@ -69,7 +69,7 @@ int probe_82802ab(struct flashchip *flash)
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/util/flashrom/am29f040b.c b/util/flashrom/am29f040b.c
index da12277244..fbe435b888 100644
--- a/util/flashrom/am29f040b.c
+++ b/util/flashrom/am29f040b.c
@@ -83,7 +83,7 @@ int probe_29f040b(struct flashchip *flash)
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/util/flashrom/en29f002a.c b/util/flashrom/en29f002a.c
index 904b58b819..c70b37b115 100644
--- a/util/flashrom/en29f002a.c
+++ b/util/flashrom/en29f002a.c
@@ -49,7 +49,7 @@ int probe_en29f512(struct flashchip *flash)
*(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/util/flashrom/jedec.c b/util/flashrom/jedec.c
index 58a750a93f..9dbaa5327d 100644
--- a/util/flashrom/jedec.c
+++ b/util/flashrom/jedec.c
@@ -130,7 +130,7 @@ int probe_jedec(struct flashchip *flash)
*(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/util/flashrom/m29f400bt.c b/util/flashrom/m29f400bt.c
index bc70449993..d0b040de2d 100644
--- a/util/flashrom/m29f400bt.c
+++ b/util/flashrom/m29f400bt.c
@@ -75,7 +75,7 @@ int probe_m29f400bt(struct flashchip *flash)
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/util/flashrom/mx29f002.c b/util/flashrom/mx29f002.c
index 7de4502440..30adab1d72 100644
--- a/util/flashrom/mx29f002.c
+++ b/util/flashrom/mx29f002.c
@@ -38,7 +38,7 @@ int probe_29f002(struct flashchip *flash)
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/util/flashrom/sharplhf00l04.c b/util/flashrom/sharplhf00l04.c
index da7dc3f214..7db14fe4f4 100644
--- a/util/flashrom/sharplhf00l04.c
+++ b/util/flashrom/sharplhf00l04.c
@@ -61,7 +61,7 @@ int probe_lhf00l04(struct flashchip *flash)
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/util/flashrom/spi.c b/util/flashrom/spi.c
index b31a6b875f..8a7b79fdcf 100644
--- a/util/flashrom/spi.c
+++ b/util/flashrom/spi.c
@@ -126,7 +126,7 @@ static int probe_spi_rdid_generic(struct flashchip *flash, int bytes)
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/util/flashrom/sst28sf040.c b/util/flashrom/sst28sf040.c
index 85fb9d0966..89be9d8e81 100644
--- a/util/flashrom/sst28sf040.c
+++ b/util/flashrom/sst28sf040.c
@@ -112,7 +112,7 @@ int probe_28sf040(struct flashchip *flash)
*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/util/flashrom/sst49lfxxxc.c b/util/flashrom/sst49lfxxxc.c
index b6693efb11..2c9a87b9d8 100644
--- a/util/flashrom/sst49lfxxxc.c
+++ b/util/flashrom/sst49lfxxxc.c
@@ -135,7 +135,7 @@ int probe_49lfxxxc(struct flashchip *flash)
*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/util/flashrom/stm50flw0x0x.c b/util/flashrom/stm50flw0x0x.c
index 67cf62c650..c06bab9791 100644
--- a/util/flashrom/stm50flw0x0x.c
+++ b/util/flashrom/stm50flw0x0x.c
@@ -80,7 +80,7 @@ int probe_stm50flw0x0x(struct flashchip *flash)
*(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/util/flashrom/w29ee011.c b/util/flashrom/w29ee011.c
index d54b0380b0..fa3aa7ccc0 100644
--- a/util/flashrom/w29ee011.c
+++ b/util/flashrom/w29ee011.c
@@ -62,7 +62,7 @@ int probe_w29ee011(struct flashchip *flash)
*(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/util/flashrom/w39v040c.c b/util/flashrom/w39v040c.c
index ce025969f7..37549d7b73 100644
--- a/util/flashrom/w39v040c.c
+++ b/util/flashrom/w39v040c.c
@@ -44,7 +44,7 @@ int probe_w39v040c(struct flashchip *flash)
*(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");