]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: use pr_err to output error message
authorYu Kuai <yukuai3@huawei.com>
Sat, 21 May 2022 07:37:49 +0000 (15:37 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 28 May 2022 02:39:33 +0000 (20:39 -0600)
commit78bd39615e0b45c09574df30d37af9f6121dc658
tree02e6906ec79b0db2aa8be0926468f51f62a5cbe2
parentb0076d63e0624c88ae440fc7741f42b6e4d08268
nbd: use pr_err to output error message

Instead of using the long printk(KERN_ERR "nbd: ...") to
output error message, defining pr_fmt and using
the short pr_err("") to do that. The replacemen is done
by using the following command:

  sed -i 's/printk(KERN_ERR "nbd: /pr_err("/g' \
  drivers/block/nbd.c

This patch also rewrap to 80 columns where possible.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20220521073749.3146892-7-yukuai3@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c