Whamcloud - gitweb
Fix printf types (FreeBSD has u_long for ntohl).
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 14:26:29 +0000 (16:26 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 14:26:29 +0000 (16:26 +0200)
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
e2fsck/recovery.c
misc/dumpe2fs.c

index 36e5e2b..22e79a5 100644 (file)
@@ -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;
        }
index 58c9869..821e67a 100644 (file)
@@ -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);