diff options
author | ksi@koi8.net <ksi@koi8.net> | 2007-08-14 10:02:16 -0700 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-14 20:58:04 +0200 |
commit | b361acd64fd2525c081b9b288b0804efe209c0e9 (patch) | |
tree | 2f5ef99bf758ef2051a05b368b57acea587f0e61 /board/davinci/schmoogie/dv_board.c | |
parent | 541d41b2f23182047c0d655ad8d795f33dd37df2 (diff) | |
download | u-boot-imx-b361acd64fd2525c081b9b288b0804efe209c0e9.zip u-boot-imx-b361acd64fd2525c081b9b288b0804efe209c0e9.tar.gz u-boot-imx-b361acd64fd2525c081b9b288b0804efe209c0e9.tar.bz2 |
TI DaVinci - fix unsupported %hhx format
Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
Diffstat (limited to 'board/davinci/schmoogie/dv_board.c')
-rw-r--r-- | board/davinci/schmoogie/dv_board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/davinci/schmoogie/dv_board.c b/board/davinci/schmoogie/dv_board.c index b15c5f7..9f271a1 100644 --- a/board/davinci/schmoogie/dv_board.c +++ b/board/davinci/schmoogie/dv_board.c @@ -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]); } |