diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-12-05 01:34:56 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-06 02:12:34 +0100 |
commit | c644533e2a8cd395997609f7e33b1e38c27e40f0 (patch) | |
tree | 6ec9c9f898c7d232b3f6508d046f362ec03de5e7 /libdiskfs | |
parent | 1cebd0baa3450d5c1c745874836555df6432e04e (diff) | |
download | hurd-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 'libdiskfs')
-rw-r--r-- | libdiskfs/boot-start.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 89d09d65..f245200d 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -248,7 +248,7 @@ diskfs_start_bootstrap () while (err == KERN_NAME_EXISTS); diskfs_kernel_task = MACH_PORT_NULL; - len = snprintf (buf, sizeof buf, "--kernel-task=%lu", kernel_task_name); + len = snprintf (buf, sizeof buf, "--kernel-task=%u", kernel_task_name); assert_backtrace (len > 0); assert_backtrace ((size_t) len < sizeof buf); /* Insert as second argument. */ |