From c644533e2a8cd395997609f7e33b1e38c27e40f0 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 5 Dec 2022 01:34:56 -0500 Subject: 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: --- exec/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/main.c') 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) { -- cgit v1.2.3