summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-08-11 23:45:49 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-08-11 23:45:49 +0200
commit9da44fa59ceb4c0994325744c88822456ec99081 (patch)
treef9ed3051314f40bda1db67763a7767e59b248437
parent1f244038a19b6405d313a81d520646ab0cb8a580 (diff)
Fix format
* ipc/mach_port.c (mach_port_mod_refs): Fix passing string size.
-rw-r--r--ipc/mach_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index d90f5c6b..b1379b79 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -718,7 +718,7 @@ mach_port_mod_refs(
if (MACH_PORT_VALID (name) && space == current_space()) {
printf("task %.*s %screasing a bogus port "
"%lu by %d, most probably a bug.\n",
- sizeof current_task()->name,
+ (int) (sizeof current_task()->name),
current_task()->name,
delta < 0 ? "de" : "in", name,
delta < 0 ? -delta : delta);