From e914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:11:26 +0100 Subject: fix compiler warnings in hurd/procfs procfs: Fix compiler warnings. * include/sys/procfs.h: Change uintptr_t to vm_address_t. * procfs/process.c: Fix format strings. * procfs/rootdir.c: Add missing casts. --- procfs/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'procfs/process.c') diff --git a/procfs/process.c b/procfs/process.c index 2255bcdc..ece37b70 100644 --- a/procfs/process.c +++ b/procfs/process.c @@ -149,7 +149,7 @@ process_file_gc_maps (struct proc_stat *ps, char **contents) if (err) break; - fprintf (s, "%0*x-%0*x %c%c%c%c %0*x %s %d ", + fprintf (s, "%0*lx-%0*lx %c%c%c%c %0*lx %s %d ", /* Address range. */ 2*sizeof s, addr, 2*sizeof s, addr + size, @@ -178,7 +178,7 @@ process_file_gc_maps (struct proc_stat *ps, char **contents) else mach_port_deallocate (mach_task_self (), obj); - fprintf (s, "[mem_obj=%d]\n", obj); + fprintf (s, "[mem_obj=%lu]\n", obj); } else fprintf (s, "\n"); -- cgit v1.2.3