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 /boot | |
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 'boot')
-rw-r--r-- | boot/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |