mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-28 12:34:13 +08:00
Fix printf types (FreeBSD has u_long for ntohl).
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
This commit is contained in:
parent
94fa1108ee
commit
f6567a889f
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user