aboutsummaryrefslogtreecommitdiff
path: root/procfs
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-05 01:34:56 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-06 02:12:34 +0100
commitc644533e2a8cd395997609f7e33b1e38c27e40f0 (patch)
tree6ec9c9f898c7d232b3f6508d046f362ec03de5e7 /procfs
parent1cebd0baa3450d5c1c745874836555df6432e04e (diff)
downloadhurd-c644533e2a8cd395997609f7e33b1e38c27e40f0.tar.gz
hurd-c644533e2a8cd395997609f7e33b1e38c27e40f0.tar.bz2
hurd-c644533e2a8cd395997609f7e33b1e38c27e40f0.zip
Fix *printf specifier for user space mach ports.
mach_port_t are mach_port_name_t and thus require %u instead of %lu. Message-Id: <Y42RELMbulK4xaKM@reue>
Diffstat (limited to 'procfs')
-rw-r--r--procfs/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs/process.c b/procfs/process.c
index 6e4c1515..f608bed6 100644
--- a/procfs/process.c
+++ b/procfs/process.c
@@ -191,7 +191,7 @@ process_file_gc_maps (struct proc_stat *ps, char **contents)
else
mach_port_deallocate (mach_task_self (), obj);
- fprintf (s, "[mem_obj=%lu]\n", obj);
+ fprintf (s, "[mem_obj=%u]\n", obj);
}
else
fprintf (s, "\n");