summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:28:51 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:28:51 +0000
commit4429f5ee4d22d127bed28b4866ce4272c073de61 (patch)
tree116abdc23593c81fa2af296fc2e79535a44813e5
parent3a9ca55bf348e7ba8450fa32860be1a8a358e562 (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* portinfo.c (print_port_info): Use %z formats for port names. * xportinfo.c (print_xlated_port_info): Likewise.
-rw-r--r--libshouldbeinlibc/xportinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/xportinfo.c b/libshouldbeinlibc/xportinfo.c
index bba84a12..cce6fb6c 100644
--- a/libshouldbeinlibc/xportinfo.c
+++ b/libshouldbeinlibc/xportinfo.c
@@ -35,7 +35,7 @@ print_xlated_port_info (mach_port_t name, mach_port_type_t type,
error_t err = port_name_xlator_xlate (x, name, type, &name, &type);
if (! err)
{
- fprintf (stream, (show & PORTINFO_HEX_NAMES) ? "%#6x => " : "%6d => ",
+ fprintf (stream, (show & PORTINFO_HEX_NAMES) ? "%#6zx => " : "%6zd => ",
old_name);
err = print_port_info (name, type, x->to_task, show, stream);
}