From c925ed9fd3bf4d4fb8a3e6306cda19040cd54627 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 6 Dec 2022 00:33:41 -0500 Subject: Define vm_size_t and vm_offset_t as __mach_uintptr_t. This allows *printf to use %zd/%zu/%zx to print vm_size_t and vm_offset_t. Warnings using the incorrect specifiers were fixed. Note that MACH_PORT_NULL became just 0 because GCC thinks that we were comparing a pointer to a character (due to it being an unsigned int) so I removed the explicit cast. Message-Id: --- kern/ipc_kobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/ipc_kobject.c') diff --git a/kern/ipc_kobject.c b/kern/ipc_kobject.c index 5ced4037..cb6fe592 100644 --- a/kern/ipc_kobject.c +++ b/kern/ipc_kobject.c @@ -327,7 +327,7 @@ ipc_kobject_destroy( default: #if MACH_ASSERT - printf("ipc_kobject_destroy: port 0x%p, kobj 0x%lx, type %d\n", + printf("ipc_kobject_destroy: port 0x%p, kobj 0x%zd, type %d\n", port, port->ip_kobject, ip_kotype(port)); #endif /* MACH_ASSERT */ break; -- cgit v1.2.3