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/ext2fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext2fs/ext2fs.c') diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 8e434969..3c76d8c8 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include "ext2fs.h" @@ -230,7 +231,7 @@ main (int argc, char **argv) &store_parsed, &bootstrap); if (store->size < SBLOCK_OFFS + SBLOCK_SIZE) - ext2_panic ("device too small for superblock (%Ld bytes)", store->size); + ext2_panic ("device too small for superblock (%" PRIi64 " bytes)", store->size); if (store->log2_blocks_per_page < 0) ext2_panic ("device block size (%zu) greater than page size (%lu)", store->block_size, (unsigned long)vm_page_size); -- cgit v1.2.3