aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-27 03:28:53 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-27 03:28:53 +0000
commit8e392922b09dff10cd7e1e5a83c578000bf34fe5 (patch)
tree762a8e35bf124f5e2b18747535bbc4ec2313b919
parentc265b17550dc90237c7dc03da7b58ceea8c74bbf (diff)
downloadbusybox-w32-8e392922b09dff10cd7e1e5a83c578000bf34fe5.tar.gz
busybox-w32-8e392922b09dff10cd7e1e5a83c578000bf34fe5.tar.bz2
busybox-w32-8e392922b09dff10cd7e1e5a83c578000bf34fe5.zip
Be extra pedantic about printing the correct type for an address
-rw-r--r--libbb/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/interface.c b/libbb/interface.c
index e69be15e6..680216a57 100644
--- a/libbb/interface.c
+++ b/libbb/interface.c
@@ -15,7 +15,7 @@
15 * that either displays or sets the characteristics of 15 * that either displays or sets the characteristics of
16 * one or more of the system's networking interfaces. 16 * one or more of the system's networking interfaces.
17 * 17 *
18 * Version: $Id: interface.c,v 1.5 2001/10/24 04:59:38 andersen Exp $ 18 * Version: $Id: interface.c,v 1.6 2001/10/27 03:28:19 andersen Exp $
19 * 19 *
20 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> 20 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
21 * and others. Copyright 1993 MicroWalt Corporation 21 * and others. Copyright 1993 MicroWalt Corporation
@@ -2100,7 +2100,7 @@ static void ife_print(struct interface *ptr)
2100 printf(_("Interrupt:%d "), ptr->map.irq); 2100 printf(_("Interrupt:%d "), ptr->map.irq);
2101 if (ptr->map.base_addr >= 0x100) /* Only print devices using it for 2101 if (ptr->map.base_addr >= 0x100) /* Only print devices using it for
2102 I/O maps */ 2102 I/O maps */
2103 printf(_("Base address:0x%x "), ptr->map.base_addr); 2103 printf(_("Base address:0x%lx "), (unsigned long)ptr->map.base_addr);
2104 if (ptr->map.mem_start) { 2104 if (ptr->map.mem_start) {
2105 printf(_("Memory:%lx-%lx "), ptr->map.mem_start, ptr->map.mem_end); 2105 printf(_("Memory:%lx-%lx "), ptr->map.mem_start, ptr->map.mem_end);
2106 } 2106 }