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: --- ext2fs/ext2fs.c | 2 +- ext2fs/pager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext2fs') diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 50435c76..5beb3906 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -232,7 +232,7 @@ main (int argc, char **argv) if (store->size < SBLOCK_OFFS + SBLOCK_SIZE) ext2_panic ("device too small for superblock (%Ld bytes)", store->size); if (store->log2_blocks_per_page < 0) - ext2_panic ("device block size (%zu) greater than page size (%zd)", + ext2_panic ("device block size (%zu) greater than page size (%lu)", store->block_size, vm_page_size); /* Map the entire disk. */ diff --git a/ext2fs/pager.c b/ext2fs/pager.c index baf2d4b7..00544cfb 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -905,7 +905,7 @@ static void disk_cache_init (void) { if (block_size != vm_page_size) - ext2_panic ("Block size %u != vm_page_size %u", + ext2_panic ("Block size %u != vm_page_size %lu", block_size, vm_page_size); pthread_mutex_init (&disk_cache_lock, NULL); -- cgit v1.2.3