flashrom: Beautify flash chip ID verbose printout a little, always use %02x.
authorPeter Stuge <peter@stuge.se>
Sun, 25 Jan 2009 23:52:45 +0000 (23:52 +0000)
committerPeter Stuge <peter@stuge.se>
Sun, 25 Jan 2009 23:52:45 +0000 (23:52 +0000)
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

13 files changed:
util/flashrom/82802ab.c
util/flashrom/am29f040b.c
util/flashrom/en29f002a.c
util/flashrom/jedec.c
util/flashrom/m29f400bt.c
util/flashrom/mx29f002.c
util/flashrom/sharplhf00l04.c
util/flashrom/spi.c
util/flashrom/sst28sf040.c
util/flashrom/sst49lfxxxc.c
util/flashrom/stm50flw0x0x.c
util/flashrom/w29ee011.c
util/flashrom/w39v040c.c

index a191093ccfaad3098bbeddd7cb56176d541ec155..5e5b1a59add70c75195c9db93bc98afb99004ca4 100644 (file)
@@ -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;
index da12277244b93f4c4108200e42cad8cbb1189fd9..fbe435b8887f24dfec980303198c19f8fe1c1284 100644 (file)
@@ -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;
 
index 904b58b81917dd04407af1a65c018e6b99374ac7..c70b37b11531ceb40cfedda279adf8cf01fd72d0 100644 (file)
@@ -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;
index 58a750a93f866df894e6e1b90c795a71e80dddbb..9dbaa5327daaddd4b2715dce637718f65b514e2d 100644 (file)
@@ -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");
index bc70449993426b1456f21212551367f578fa57e6..d0b040de2da488960ba3c9673d4887acb38123ce 100644 (file)
@@ -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;
index 7de4502440b07f18bac327b3abec753595907762..30adab1d72ce2919c18ac704678b50f19456444d 100644 (file)
@@ -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;
 
index da7dc3f214462de125fa85531d58406dce6106af..7db14fe4f4e650f2ced40a31333db56ee42a1069 100644 (file)
@@ -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;
index b31a6b875f106f53dca6beb55093aed27c511dae..8a7b79fdcfb79256f3ab748bd1ef01d7b6881c7c 100644 (file)
@@ -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) {
index 85fb9d096672aaeba56b3f9558d508c641c2e2dd..89be9d8e81a0708b601174ab3b8f4bf3a15cfa7a 100644 (file)
@@ -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;
 
index b6693efb11d5e22076b0484cdc0b18633bf13c64..2c9a87b9d8ead555f099c19960b11eb4a3750ce9 100644 (file)
@@ -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;
index 67cf62c650c4ba1f683b60137388fea78ba8c7c4..c06bab97914541122d114209e8c7137d854f9496 100644 (file)
@@ -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)
index d54b0380b05e3b11717cb9def49388cd8573b97f..fa3aa7ccc067f6ba19424a1fc3c75dd3d8fa5b29 100644 (file)
@@ -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;
index ce025969f73e9a26dbb9f035ed7a400fa246a84b..37549d7b7374939c8787ddce00527ae97bcc5435 100644 (file)
@@ -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");