[PATCH] nvme-pci: define pr_fmt()

Baruch Siach baruch at tkos.co.il
Mon Dec 9 01:49:28 PST 2024


Make pr_err() call from nvme_find_rq() produce messages with prefix, to
ease debug.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 drivers/nvme/host/pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index ff91000b5cf0..049ec18c037a 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -4,6 +4,7 @@
  * Copyright (c) 2011-2014, Intel Corporation.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 #include <linux/acpi.h>
 #include <linux/async.h>
 #include <linux/blkdev.h>
-- 
2.45.2




More information about the Linux-nvme mailing list