]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dm dust: remove h from printk format specifier
authorTom Rix <trix@redhat.com>
Tue, 15 Dec 2020 21:31:25 +0000 (13:31 -0800)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Feb 2021 15:10:04 +0000 (10:10 -0500)
See Documentation/core-api/printk-formats.rst.

commit 04195fbf4af1 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]")

Standard integer promotion is already done and %hx and %hhx is useless
so do not encourage the use of %hh[xudi] or %h[xudi].

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-dust.c

index 072ea913cebc727861b3ed17deb568b4f5da9e39..cbe1058ee589a1bc5a7a2bbd1e9b4369c2a3273d 100644 (file)
@@ -130,7 +130,7 @@ static int dust_add_block(struct dust_device *dd, unsigned long long block,
 
        dd->badblock_count++;
        if (!dd->quiet_mode) {
-               DMINFO("%s: badblock added at block %llu with write fail count %hhu",
+               DMINFO("%s: badblock added at block %llu with write fail count %u",
                       __func__, block, wr_fail_cnt);
        }
        spin_unlock_irqrestore(&dd->dust_lock, flags);