diff options
author | André Almeida <andrealmeid@collabora.com> | 2019-09-16 16:07:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-16 16:38:29 +0200 |
commit | 9c7eddf1b080f98fed1aadb74fe784f29bf77a08 (patch) | |
tree | 1dd29f996855e9356732584b72b1e841f19c35fb /drivers/block/null_blk_zoned.c | |
parent | null_blk: match the type of parameter nr_devices (diff) | |
download | linux-9c7eddf1b080f98fed1aadb74fe784f29bf77a08.tar.xz linux-9c7eddf1b080f98fed1aadb74fe784f29bf77a08.zip |
null_blk: format pr_* logs with pr_fmt
Instead of writing "null_blk: " at the beginning of each
pr_err/info/warn log message, format messages using pr_fmt() macro.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk_zoned.c')
-rw-r--r-- | drivers/block/null_blk_zoned.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/null_blk_zoned.c b/drivers/block/null_blk_zoned.c index c07a05315e25..eabc116832a7 100644 --- a/drivers/block/null_blk_zoned.c +++ b/drivers/block/null_blk_zoned.c @@ -17,7 +17,7 @@ int null_zone_init(struct nullb_device *dev) unsigned int i; if (!is_power_of_2(dev->zone_size)) { - pr_err("null_blk: zone_size must be power-of-two\n"); + pr_err("zone_size must be power-of-two\n"); return -EINVAL; } @@ -31,7 +31,7 @@ int null_zone_init(struct nullb_device *dev) if (dev->zone_nr_conv >= dev->nr_zones) { dev->zone_nr_conv = dev->nr_zones - 1; - pr_info("null_blk: changed the number of conventional zones to %u", + pr_info("changed the number of conventional zones to %u", dev->zone_nr_conv); } |