aboutsummaryrefslogtreecommitdiff
path: root/toys/other/ifconfig.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-01 16:08:51 -0600
committerRob Landley <rob@landley.net>2015-03-01 16:08:51 -0600
commit30c36d87280f3c45db157056b94ff67922f03fbf (patch)
tree21cc255a066705e8b0166ee6491376aff527e976 /toys/other/ifconfig.c
parent70a84a356b1c56743618362867b9300007d11998 (diff)
downloadtoybox-30c36d87280f3c45db157056b94ff67922f03fbf.tar.gz
Patches from Elliott Hughes to fix various printf() format strings.
(Don't specify the space flag when it's the default behavior. The ifconfig stuff was actual bugs.)
Diffstat (limited to 'toys/other/ifconfig.c')
-rw-r--r--toys/other/ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c
index 8db3ff06..31fc1d3c 100644
--- a/toys/other/ifconfig.c
+++ b/toys/other/ifconfig.c
@@ -254,7 +254,7 @@ static void display_ifconfig(char *name, int always, unsigned long long val[])
xprintf("%10c", ' ');
if(ifre.ifr_map.irq) xprintf("Interrupt:%d ", ifre.ifr_map.irq);
if(ifre.ifr_map.base_addr >= 0x100) // IO_MAP_INDEX
- xprintf("Base address:0x%lx ", ifre.ifr_map.base_addr);
+ xprintf("Base address:0x%x ", ifre.ifr_map.base_addr);
if(ifre.ifr_map.mem_start)
xprintf("Memory:%lx-%lx ", ifre.ifr_map.mem_start, ifre.ifr_map.mem_end);
if(ifre.ifr_map.dma) xprintf("DMA chan:%x ", ifre.ifr_map.dma);
@@ -449,7 +449,7 @@ void ifconfig_main(void)
if (!argv[1]) {
toys.exithelp++;
- error_exit(*argv);
+ error_exit("%s", *argv);
}
plen = get_addrinfo(argv[1], AF_INET6, &ifre6.addr);