libkmod: use C99 __func__ over GNU-specific __FUNCTION__

This commit is contained in:
Jan Engelhardt 2011-12-20 16:27:40 +01:00 committed by Lucas De Marchi
parent 135bffd652
commit 87beacc99f
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ struct kmod_elf {
#if defined(ENABLE_LOGGING) && defined(ENABLE_ELFDBG)
#define ELFDBG(elf, ...) \
_elf_dbg(elf, __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__);
_elf_dbg(elf, __FILE__, __LINE__, __func__, __VA_ARGS__);
static inline void _elf_dbg(const struct kmod_elf *elf, const char *fname, unsigned line, const char *func, const char *fmt, ...)
{

View File

@ -15,7 +15,7 @@ static __always_inline __printf_format(2, 3) void
#define kmod_log_cond(ctx, prio, arg...) \
do { \
if (kmod_get_log_priority(ctx) >= prio) \
kmod_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg);\
kmod_log(ctx, prio, __FILE__, __LINE__, __func__, ## arg);\
} while (0)
#ifdef ENABLE_LOGGING