summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/portinfo.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 22:48:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 23:03:26 +0100
commitadeeb9990e6302482b38267fd517a2516d5b9e2a (patch)
treec1c91df6046a229f0195665368431c7b12996efc /libshouldbeinlibc/portinfo.c
parent4c0d8ebb6494af95f125e1e829dfb7453b7ad03e (diff)
fix compiler warnings in hurd/libshouldbeinlibc
Diffstat (limited to 'libshouldbeinlibc/portinfo.c')
-rw-r--r--libshouldbeinlibc/portinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/portinfo.c
index e6305c6e..f3c540f5 100644
--- a/libshouldbeinlibc/portinfo.c
+++ b/libshouldbeinlibc/portinfo.c
@@ -53,7 +53,7 @@ print_port_info (mach_port_t name, mach_port_type_t type, task_t task,
return err;
}
- fprintf (stream, hex_names ? "%#6zx: " : "%6zd: ", name);
+ fprintf (stream, hex_names ? "%#6lx: " : "%6lu: ", name);
if (type & MACH_PORT_TYPE_RECEIVE)
{
@@ -68,7 +68,7 @@ print_port_info (mach_port_t name, mach_port_type_t type, task_t task,
fprintf (stream, " (");
if (status.mps_pset != MACH_PORT_NULL)
fprintf (stream,
- hex_names ? "port-set: %#zx, " : "port-set: %zd, ",
+ hex_names ? "port-set: %#lx, " : "port-set: %lu, ",
status.mps_pset);
fprintf (stream, "seqno: %zu", status.mps_seqno);
if (status.mps_mscount)
@@ -119,9 +119,9 @@ print_port_info (mach_port_t name, mach_port_type_t type, task_t task,
fprintf (stream, " (empty)");
else
{
- fprintf (stream, hex_names ? " (%#zx" : " (%zu", members[0]);
+ fprintf (stream, hex_names ? " (%#lx" : " (%lu", members[0]);
for (i = 1; i < members_len; i++)
- fprintf (stream, hex_names ? ", %#zx" : ", %zu",
+ fprintf (stream, hex_names ? ", %#lx" : ", %lu",
members[i]);
fprintf (stream, ")");
munmap ((caddr_t) members, members_len * sizeof *members);