edac: fold __func__ into edac_debug_printk
This shortens debugfX() calls a bit. Reviewed-by: Mauro Carvalho Chehab <mchehab@redhat.com> CC: Doug Thompson <norsk5@yahoo.com> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
b034c19f9f
commit
d357cbb445
@ -79,7 +79,8 @@ extern int edac_debug_level;
|
||||
#define edac_debug_printk(level, fmt, arg...) \
|
||||
do { \
|
||||
if (level <= edac_debug_level) \
|
||||
edac_printk(KERN_DEBUG, EDAC_DEBUG, fmt, ##arg); \
|
||||
edac_printk(KERN_DEBUG, EDAC_DEBUG, \
|
||||
"%s: " fmt, __func__, ##arg); \
|
||||
} while (0)
|
||||
#else /* CONFIG_EDAC_DEBUG_VERBOSE */
|
||||
#define edac_debug_printk(level, fmt, arg...) \
|
||||
|
Loading…
Reference in New Issue
Block a user