add patch make-ext4-get-inode-loc-plug
[ext4-patch-queue.git] / jbd2-fix-some-print-format-mistakes
blobcd20693d34a92840f275e414361b8f86ab2991e7
1 jbd2: fix some print format mistakes
3 From: Gaowei Pu <pugaowei@gmail.com>
5 There are some print format mistakes in debug messages. Fix them.
7 Signed-off-by: Gaowei Pu <pugaowei@gmail.com>
8 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 Reviewed-by: Jan Kara <jack@suse.cz>
11 ---
12  fs/jbd2/journal.c | 18 +++++++++---------
13  1 file changed, 9 insertions(+), 9 deletions(-)
15 diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
16 index 37e16d969925..565e99b67b30 100644
17 --- a/fs/jbd2/journal.c
18 +++ b/fs/jbd2/journal.c
19 @@ -203,7 +203,7 @@ static int kjournald2(void *arg)
20         if (journal->j_flags & JBD2_UNMOUNT)
21                 goto end_loop;
23 -       jbd_debug(1, "commit_sequence=%d, commit_request=%d\n",
24 +       jbd_debug(1, "commit_sequence=%u, commit_request=%u\n",
25                 journal->j_commit_sequence, journal->j_commit_request);
27         if (journal->j_commit_sequence != journal->j_commit_request) {
28 @@ -324,7 +324,7 @@ static void journal_kill_thread(journal_t *journal)
29   * IO is in progress. do_get_write_access() handles this.
30   *
31   * The function returns a pointer to the buffer_head to be used for IO.
32 - * 
33 + *
34   *
35   * Return value:
36   *  <0: Error
37 @@ -500,7 +500,7 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target)
38                  */
40                 journal->j_commit_request = target;
41 -               jbd_debug(1, "JBD2: requesting commit %d/%d\n",
42 +               jbd_debug(1, "JBD2: requesting commit %u/%u\n",
43                           journal->j_commit_request,
44                           journal->j_commit_sequence);
45                 journal->j_running_transaction->t_requested = jiffies;
46 @@ -513,7 +513,7 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target)
47                 WARN_ONCE(1, "JBD2: bad log_start_commit: %u %u %u %u\n",
48                           journal->j_commit_request,
49                           journal->j_commit_sequence,
50 -                         target, journal->j_running_transaction ? 
51 +                         target, journal->j_running_transaction ?
52                           journal->j_running_transaction->t_tid : 0);
53         return 0;
54  }
55 @@ -698,12 +698,12 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
56  #ifdef CONFIG_JBD2_DEBUG
57         if (!tid_geq(journal->j_commit_request, tid)) {
58                 printk(KERN_ERR
59 -                      "%s: error: j_commit_request=%d, tid=%d\n",
60 +                      "%s: error: j_commit_request=%u, tid=%u\n",
61                        __func__, journal->j_commit_request, tid);
62         }
63  #endif
64         while (tid_gt(tid, journal->j_commit_sequence)) {
65 -               jbd_debug(1, "JBD2: want %d, j_commit_sequence=%d\n",
66 +               jbd_debug(1, "JBD2: want %u, j_commit_sequence=%u\n",
67                                   tid, journal->j_commit_sequence);
68                 read_unlock(&journal->j_state_lock);
69                 wake_up(&journal->j_wait_commit);
70 @@ -944,7 +944,7 @@ int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block)
72         trace_jbd2_update_log_tail(journal, tid, block, freed);
73         jbd_debug(1,
74 -                 "Cleaning journal tail from %d to %d (offset %lu), "
75 +                 "Cleaning journal tail from %u to %u (offset %lu), "
76                   "freeing %lu\n",
77                   journal->j_tail_sequence, tid, block, freed);
79 @@ -1318,7 +1318,7 @@ static int journal_reset(journal_t *journal)
80          */
81         if (sb->s_start == 0) {
82                 jbd_debug(1, "JBD2: Skipping superblock update on recovered sb "
83 -                       "(start %ld, seq %d, errno %d)\n",
84 +                       "(start %ld, seq %u, errno %d)\n",
85                         journal->j_tail, journal->j_tail_sequence,
86                         journal->j_errno);
87                 journal->j_flags |= JBD2_FLUSHED;
88 @@ -1453,7 +1453,7 @@ static void jbd2_mark_journal_empty(journal_t *journal, int write_op)
89                 return;
90         }
92 -       jbd_debug(1, "JBD2: Marking journal as empty (seq %d)\n",
93 +       jbd_debug(1, "JBD2: Marking journal as empty (seq %u)\n",
94                   journal->j_tail_sequence);
96         sb->s_sequence = cpu_to_be32(journal->j_tail_sequence);
97 -- 
98 2.21.0