diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-11 01:16:00 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-11 01:16:00 +0200 |
commit | 9b55a2536919f4de1bb1044e6eb8262c2f53bc96 (patch) | |
tree | 56a8a946f45094770f1f4b3e10b2344191c6c40c /board/netstal/common | |
parent | 4109df6f75fc00ab7da56d286ba50149a0d16a69 (diff) | |
download | u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.zip u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.gz u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.bz2 |
Fix some more print() format errors.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/netstal/common')
-rw-r--r-- | board/netstal/common/nm_bsp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/board/netstal/common/nm_bsp.c b/board/netstal/common/nm_bsp.c index 86f491b..e38b706 100644 --- a/board/netstal/common/nm_bsp.c +++ b/board/netstal/common/nm_bsp.c @@ -75,8 +75,8 @@ void set_params_for_sw_install(int install_requested, char *board_name ) setenv("install", string); sprintf(string, "setenv bootargs emac(0,0)c:%s/%s_sw_inst " "e=${ipaddr} h=${serverip} f=0x1000; " - "bootvx ${loadaddr}\0", - board_name, board_name); + "bootvx ${loadaddr}%c", + board_name, board_name, 0); setenv("boot_sw_inst", string); } } @@ -108,10 +108,12 @@ void common_misc_init_r(void) gd->bd->bi_enetaddr[3] = (serial >> 16) & 0xff; gd->bd->bi_enetaddr[4] = (serial >> 8) & 0xff; gd->bd->bi_enetaddr[5] = hcu_get_slot(); - sprintf(ethaddr, "%02X:%02X:%02X:%02X:%02X:%02X\0", + sprintf(ethaddr, "%02X:%02X:%02X:%02X:%02X:%02X%c", gd->bd->bi_enetaddr[0], gd->bd->bi_enetaddr[1], gd->bd->bi_enetaddr[2], gd->bd->bi_enetaddr[3], - gd->bd->bi_enetaddr[4], gd->bd->bi_enetaddr[5]) ; + gd->bd->bi_enetaddr[4], + gd->bd->bi_enetaddr[5], + 0) ; printf("%s: Setting eth %s serial 0x%x\n", __FUNCTION__, ethaddr, serial); setenv(DEFAULT_ETH_ADDR, ethaddr); |