mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nbd: add missing definition of pr_fmt
@ 2022-07-06  9:33 Yu Kuai
  2022-07-18 13:52 ` Yu Kuai
  0 siblings, 1 reply; 8+ messages in thread
From: Yu Kuai @ 2022-07-06  9:33 UTC (permalink / raw)
  To: josef, axboe, houtao1, yukuai3
  Cc: linux-block, nbd, linux-kernel, yukuai1, yi.zhang

From: Yu Kuai <yukuai3@huawei.com>

commit 1243172d5894 ("nbd: use pr_err to output error message") tries
to define pr_fmt and use short pr_err() to output error message,
however, the definition is missed.

Fixes: 1243172d5894 ("nbd: use pr_err to output error message")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
---
 drivers/block/nbd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 07f3c139a3d7..94a1602adab5 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -44,6 +44,9 @@
 #include <linux/nbd-netlink.h>
 #include <net/genetlink.h>
 
+#undef pr_fmt
+#define pr_fmt(fmt) "nbd: " fmt
+
 #define CREATE_TRACE_POINTS
 #include <trace/events/nbd.h>
 
-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-23  4:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06  9:33 [PATCH] nbd: add missing definition of pr_fmt Yu Kuai
2022-07-18 13:52 ` Yu Kuai
2022-07-18 14:32   ` Joe Perches
2022-07-20 11:46     ` Yu Kuai
2022-07-23  2:14       ` Yu Kuai
2022-07-23  2:15       ` Yu Kuai
2022-07-23  3:12         ` Joe Perches
2022-07-23  4:08           ` Yu Kuai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®