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: --- device/ds_routines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device/ds_routines.c') diff --git a/device/ds_routines.c b/device/ds_routines.c index c883aec7..ba233a91 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -1501,7 +1501,7 @@ device_map( static void ds_no_senders(mach_no_senders_notification_t *notification) { - printf("ds_no_senders called! device_port=0x%lx count=%d\n", + printf("ds_no_senders called! device_port=0x%zx count=%d\n", notification->not_header.msgh_remote_port, notification->not_count); } -- cgit v1.2.3