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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/ext2fs.c') 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. */ -- cgit v1.2.3