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 /ext2fs | |
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 'ext2fs')
-rw-r--r-- | ext2fs/ext2fs.c | 2 | ||||
-rw-r--r-- | ext2fs/pager.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |