[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170726084827.11447-2-bp@alien8.de>
Date: Wed, 26 Jul 2017 10:48:25 +0200
From: Borislav Petkov <bp@...en8.de>
To: linux-edac <linux-edac@...r.kernel.org>
Cc: Tony Luck <tony.luck@...el.com>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
Toshimitsu Kani <toshi.kani@....com>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/3] EDAC: Add edac_pr_err/info macros
From: Borislav Petkov <bp@...e.de>
Analogue to the generic pr_* variants but issuing the EDAC prefix.
No functionality change.
Signed-off-by: Borislav Petkov <bp@...e.de>
---
drivers/edac/edac_mc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/edac/edac_mc.h b/drivers/edac/edac_mc.h
index 5357800e418d..6d46f30dc657 100644
--- a/drivers/edac/edac_mc.h
+++ b/drivers/edac/edac_mc.h
@@ -60,6 +60,9 @@
#define edac_pci_printk(ctl, level, fmt, arg...) \
printk(level "EDAC PCI%d: " fmt, ctl->pci_idx, ##arg)
+#define edac_pr_err(fmt, arg...) edac_printk(KERN_ERR, "", fmt, ##arg)
+#define edac_pr_info(fmt, arg...) edac_printk(KERN_INFO, "", fmt, ##arg)
+
/* prefixes for edac_printk() and edac_mc_printk() */
#define EDAC_MC "MC"
#define EDAC_PCI "PCI"
--
2.14.0.rc0
Powered by blists - more mailing lists