Re: [PATCH 02/22] edac: fold __func__ into edac_debug_printk

From: Mauro Carvalho Chehab
Date: Fri May 15 2009 - 09:25:55 EST


Em Fri, 15 May 2009 14:22:13 +0200
Borislav Petkov <borislav.petkov@xxxxxxx> escreveu:

> This shortens debugfX() calls a bit.
>
> CC: Doug Thompson <norsk5@xxxxxxxxx>
> Signed-off-by: Borislav Petkov <borislav.petkov@xxxxxxx>

Reviewed-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>

> ---
> 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...) \


--

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/