From bc7a03f4110b8d3a302a9235d8a047448509951d Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:29 +0300 Subject: ext2fs: Port to x86_64 Message-Id: <20230508213136.608575-35-bugaevc@gmail.com> --- ext2fs/ialloc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ext2fs/ialloc.c') diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 3e26be7e..d6f5ac79 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -43,6 +43,8 @@ #include "ext2fs.h" #include "bitmap.c" + +#include /* ---------------------------------------------------------------- */ @@ -68,7 +70,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) if (inum < EXT2_FIRST_INO (sblock) || inum > le32toh (sblock->s_inodes_count)) { - ext2_error ("reserved inode or nonexistent inode: %Ld", inum); + ext2_error ("reserved inode or nonexistent inode: %" PRIu64, inum); pthread_spin_unlock (&global_lock); return; } @@ -80,7 +82,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) bh = disk_cache_block_ref (le32toh (gdp->bg_inode_bitmap)); if (!clear_bit (bit, bh)) - ext2_warning ("bit already cleared for inode %Ld", inum); + ext2_warning ("bit already cleared for inode %" PRIu64, inum); else { disk_cache_block_ref_ptr (bh); @@ -228,7 +230,7 @@ repeat: { if (set_bit (inum, bh)) { - ext2_warning ("bit already set for inode %llu", inum); + ext2_warning ("bit already set for inode %" PRIu64, inum); disk_cache_block_deref (bh); bh = NULL; goto repeat; @@ -253,7 +255,7 @@ repeat: if (inum < EXT2_FIRST_INO (sblock) || inum > le32toh (sblock->s_inodes_count)) { ext2_error ("reserved inode or inode > inodes count - " - "block_group = %d,inode=%llu", i, inum); + "block_group = %d,inode=%" PRIu64, i, inum); inum = 0; goto sync_out; } -- cgit v1.2.3