diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:29 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:44:59 +0200 |
commit | bc7a03f4110b8d3a302a9235d8a047448509951d (patch) | |
tree | d240719fff1c7d852d5c823ecfcb3504e7c56d1c /ext2fs/ialloc.c | |
parent | 67a9890063b9c5327ee1b89f857826235c9f63dc (diff) | |
download | hurd-bc7a03f4110b8d3a302a9235d8a047448509951d.tar.gz hurd-bc7a03f4110b8d3a302a9235d8a047448509951d.tar.bz2 hurd-bc7a03f4110b8d3a302a9235d8a047448509951d.zip |
ext2fs: Port to x86_64
Message-Id: <20230508213136.608575-35-bugaevc@gmail.com>
Diffstat (limited to 'ext2fs/ialloc.c')
-rw-r--r-- | ext2fs/ialloc.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 <inttypes.h> /* ---------------------------------------------------------------- */ @@ -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; } |