mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Be extra pedantic about printing the correct type for an address
This commit is contained in:
parent
c265b17550
commit
8e392922b0
@ -15,7 +15,7 @@
|
|||||||
* that either displays or sets the characteristics of
|
* that either displays or sets the characteristics of
|
||||||
* one or more of the system's networking interfaces.
|
* one or more of the system's networking interfaces.
|
||||||
*
|
*
|
||||||
* Version: $Id: interface.c,v 1.5 2001/10/24 04:59:38 andersen Exp $
|
* Version: $Id: interface.c,v 1.6 2001/10/27 03:28:19 andersen Exp $
|
||||||
*
|
*
|
||||||
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
|
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
|
||||||
* and others. Copyright 1993 MicroWalt Corporation
|
* and others. Copyright 1993 MicroWalt Corporation
|
||||||
@ -2100,7 +2100,7 @@ static void ife_print(struct interface *ptr)
|
|||||||
printf(_("Interrupt:%d "), ptr->map.irq);
|
printf(_("Interrupt:%d "), ptr->map.irq);
|
||||||
if (ptr->map.base_addr >= 0x100) /* Only print devices using it for
|
if (ptr->map.base_addr >= 0x100) /* Only print devices using it for
|
||||||
I/O maps */
|
I/O maps */
|
||||||
printf(_("Base address:0x%x "), ptr->map.base_addr);
|
printf(_("Base address:0x%lx "), (unsigned long)ptr->map.base_addr);
|
||||||
if (ptr->map.mem_start) {
|
if (ptr->map.mem_start) {
|
||||||
printf(_("Memory:%lx-%lx "), ptr->map.mem_start, ptr->map.mem_end);
|
printf(_("Memory:%lx-%lx "), ptr->map.mem_start, ptr->map.mem_end);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user