From: Matthias Andree Date: Tue, 30 May 2006 14:26:29 +0000 (+0200) Subject: Fix printf types (FreeBSD has u_long for ntohl). X-Git-Tag: E2FSPROGS-1_40-WIP-1114~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6567a889f071c6b294f85792abc75fa76953d1a;p=thirdparty%2Fe2fsprogs.git Fix printf types (FreeBSD has u_long for ntohl). Signed-off-by: Matthias Andree --- 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);