From f6567a889f071c6b294f85792abc75fa76953d1a Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 30 May 2006 16:26:29 +0200 Subject: [PATCH] Fix printf types (FreeBSD has u_long for ntohl). Signed-off-by: Matthias Andree --- e2fsck/recovery.c | 2 +- misc/dumpe2fs.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c index 36e5e2bbc..22e79a53b 100644 --- a/e2fsck/recovery.c +++ b/e2fsck/recovery.c @@ -236,7 +236,7 @@ int journal_recover(journal_t *journal) if (!sb->s_start) { jbd_debug(1, "No recovery required, last transaction %d\n", - ntohl(sb->s_sequence)); + (int)ntohl(sb->s_sequence)); journal->j_transaction_sequence = ntohl(sb->s_sequence) + 1; return 0; } diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index 58c9869b8..821e67aa6 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -310,10 +310,10 @@ static void print_journal_information(ext2_filsys fs) "Journal first block: %u\n" "Journal sequence: 0x%08x\n" "Journal start: %u\n" - "Journal number of users: %lu\n"), - ntohl(jsb->s_blocksize), ntohl(jsb->s_maxlen), - ntohl(jsb->s_first), ntohl(jsb->s_sequence), - ntohl(jsb->s_start), ntohl(jsb->s_nr_users)); + "Journal number of users: %u\n"), + (unsigned int)ntohl(jsb->s_blocksize), (unsigned int)ntohl(jsb->s_maxlen), + (unsigned int)ntohl(jsb->s_first), (unsigned int)ntohl(jsb->s_sequence), + (unsigned int)ntohl(jsb->s_start), (unsigned int)ntohl(jsb->s_nr_users)); for (i=0; i < ntohl(jsb->s_nr_users); i++) { uuid_unparse(&jsb->s_users[i*16], str); -- 2.47.3