EDAC, amd64: Improve amd64-specific printing macros
Prefix the warn and error macros with the respective string so that callers don't have to say "Error" or "Warning". We save us string length this way in the actual calls. While at it, shorten the calls in reserve_mc_sibling_devs(). Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
edac_printk(KERN_NOTICE, "amd64", fmt, ##arg)
|
||||
|
||||
#define amd64_warn(fmt, arg...) \
|
||||
edac_printk(KERN_WARNING, "amd64", fmt, ##arg)
|
||||
edac_printk(KERN_WARNING, "amd64", "Warning: " fmt, ##arg)
|
||||
|
||||
#define amd64_err(fmt, arg...) \
|
||||
edac_printk(KERN_ERR, "amd64", fmt, ##arg)
|
||||
edac_printk(KERN_ERR, "amd64", "Error: " fmt, ##arg)
|
||||
|
||||
#define amd64_mc_warn(mci, fmt, arg...) \
|
||||
edac_mc_chipset_printk(mci, KERN_WARNING, "amd64", fmt, ##arg)
|
||||
|
Reference in New Issue
Block a user