diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2009-05-14 15:49:28 (GMT) |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2009-06-10 10:18:44 (GMT) |
commit | d357cbb445208ea0c33b268e08a65e53fdbb5e86 (patch) | |
tree | 1f16c7f08d6da21680ee878906aa1ff2efa16f93 /drivers/edac | |
parent | b034c19f9f61c8b6f2435aa2e77f52348ebde767 (diff) | |
download | linux-d357cbb445208ea0c33b268e08a65e53fdbb5e86.tar.xz |
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_core.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 6ad95c8..48d3b14 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -76,10 +76,11 @@ extern int edac_debug_level; #ifndef CONFIG_EDAC_DEBUG_VERBOSE -#define edac_debug_printk(level, fmt, arg...) \ - do { \ - if (level <= edac_debug_level) \ - edac_printk(KERN_DEBUG, EDAC_DEBUG, fmt, ##arg); \ +#define edac_debug_printk(level, fmt, arg...) \ + do { \ + if (level <= edac_debug_level) \ + edac_printk(KERN_DEBUG, EDAC_DEBUG, \ + "%s: " fmt, __func__, ##arg); \ } while (0) #else /* CONFIG_EDAC_DEBUG_VERBOSE */ #define edac_debug_printk(level, fmt, arg...) \ |