]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
TI DaVinci - fix unsupported %hhx format
authorksi@koi8.net <ksi@koi8.net>
Tue, 14 Aug 2007 17:02:16 +0000 (10:02 -0700)
committerWolfgang Denk <wd@denx.de>
Tue, 14 Aug 2007 18:58:04 +0000 (20:58 +0200)
Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
board/davinci/dv-evm/dv_board.c
board/davinci/schmoogie/dv_board.c
board/davinci/sonata/dv_board.c

index 94925ecfb14ace349c9148177008cb6e653097d8..604edb56c30115b13584ec19361536042fec644e 100644 (file)
@@ -181,7 +181,7 @@ int misc_init_r (void)
                        tmp[0] &= buf[i];
 
                if ((tmp[0] != 0xff) && (getenv("ethaddr") == NULL)) {
-                       sprintf((char *)&tmp[0], "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
+                       sprintf((char *)&tmp[0], "%02x:%02x:%02x:%02x:%02x:%02x",
                                buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
                        setenv("ethaddr", (char *)&tmp[0]);
                }
index b15c5f71893469a618aabf1bc952a5c33375dc02..9f271a1666375f1946f08cc4b3556d908c363a12 100644 (file)
@@ -228,7 +228,7 @@ int misc_init_r (void)
                forceenv("serial#", "FAILED");
        } else {
                /* CRC OK, set "serial" env variable */
-               sprintf((char *)&tmp[0], "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx",
+               sprintf((char *)&tmp[0], "%02x%02x%02x%02x%02x%02x",
                        buf[6], buf[5], buf[4], buf[3], buf[2], buf[1]);
                forceenv("serial#", (char *)&tmp[0]);
        }
index 7b0a459fa3198703f9a3fa150202aa5b314cd2ad..99857c4271ab3cbe0c0d5fabc8a1c997d9df93e8 100644 (file)
@@ -182,7 +182,7 @@ int misc_init_r (void)
                        tmp[0] &= buf[i];
 
                if ((tmp[0] != 0xff) && (getenv("ethaddr") == NULL)) {
-                       sprintf((char *)&tmp[0], "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
+                       sprintf((char *)&tmp[0], "%02x:%02x:%02x:%02x:%02x:%02x",
                                buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
                        setenv("ethaddr", (char *)&tmp[0]);
                }