[PATCH 1/3] EDAC: Add edac_pr_err/info macros
From: Borislav Petkov
Date: Wed Jul 26 2017 - 04:49:29 EST
From: Borislav Petkov <bp@xxxxxxx>
Analogue to the generic pr_* variants but issuing the EDAC prefix.
No functionality change.
Signed-off-by: Borislav Petkov <bp@xxxxxxx>
---
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