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: --- boot/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/boot.c') diff --git a/boot/boot.c b/boot/boot.c index f326e5b2..1f02947f 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -2032,7 +2032,7 @@ static void task_died (mach_port_t name) { if (verbose > 1) - fprintf (stderr, "Task '%lu' died.\r\n", name); + fprintf (stderr, "Task '%u' died.\r\n", name); hurd_ihash_remove (&task_ihash, (hurd_ihash_key_t) name); } @@ -2050,7 +2050,7 @@ S_mach_notify_new_task (mach_port_t notify, return EOPNOTSUPP; if (verbose > 1) - fprintf (stderr, "Task '%lu' created by task '%lu'.\r\n", task, parent); + fprintf (stderr, "Task '%u' created by task '%u'.\r\n", task, parent); err = mach_port_request_notification (mach_task_self (), task, MACH_NOTIFY_DEAD_NAME, 0, -- cgit v1.2.3