]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
jbd2: fix printk format type for 'io_block' in do_one_pass()
authorYe Bin <yebin10@huawei.com>
Mon, 4 Sep 2023 10:58:17 +0000 (18:58 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Oct 2023 02:32:15 +0000 (22:32 -0400)
'io_block' is unsinged long but print it by '%ld'.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230904105817.1728356-3-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/recovery.c

index 11380ff1fe51aa30ef575a07173686bb8bab5ec1..0567f1aa189bbb1c739ece364aca3923459b3947 100644 (file)
@@ -632,7 +632,7 @@ static int do_one_pass(journal_t *journal,
                                        success = err;
                                        printk(KERN_ERR
                                                "JBD2: IO error %d recovering "
-                                               "block %ld in log\n",
+                                               "block %lu in log\n",
                                                err, io_block);
                                } else {
                                        unsigned long long blocknr;