Commit d357cbb4 authored by Borislav Petkov's avatar Borislav Petkov

edac: fold __func__ into edac_debug_printk

This shortens debugfX() calls a bit.
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
CC: Doug Thompson <norsk5@yahoo.com>
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent b034c19f
...@@ -79,7 +79,8 @@ extern int edac_debug_level; ...@@ -79,7 +79,8 @@ extern int edac_debug_level;
#define edac_debug_printk(level, fmt, arg...) \ #define edac_debug_printk(level, fmt, arg...) \
do { \ do { \
if (level <= edac_debug_level) \ 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) } while (0)
#else /* CONFIG_EDAC_DEBUG_VERBOSE */ #else /* CONFIG_EDAC_DEBUG_VERBOSE */
#define edac_debug_printk(level, fmt, arg...) \ #define edac_debug_printk(level, fmt, arg...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment