summaryrefslogtreecommitdiff
path: root/procfs/process.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 23:11:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 23:18:19 +0100
commite914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf (patch)
tree59c072d1689d526e7799d7fe8d8fe914a50162a6 /procfs/process.c
parentd73d717ecac42457f12a2d843454ecda3aa7b004 (diff)
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.
Diffstat (limited to 'procfs/process.c')
-rw-r--r--procfs/process.c4
1 files changed, 2 insertions, 2 deletions
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");