summaryrefslogtreecommitdiff
path: root/exec/main.c
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 /exec/main.c
parent1cebd0baa3450d5c1c745874836555df6432e04e (diff)
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 'exec/main.c')
-rw-r--r--exec/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/main.c b/exec/main.c
index 9825d9cf..9021e45c 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -150,7 +150,7 @@ trivfs_append_args (struct trivfs_control *fsys,
if (MACH_PORT_VALID (opt_device_master))
{
- asprintf (&opt, "--device-master-port=%lu", opt_device_master);
+ asprintf (&opt, "--device-master-port=%u", opt_device_master);
if (opt)
{