Fix printf types (FreeBSD has u_long for ntohl).

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
This commit is contained in:
Matthias Andree 2006-05-30 16:26:29 +02:00
parent 94fa1108ee
commit f6567a889f
2 changed files with 5 additions and 5 deletions

View 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;
}

View 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);