mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-15 06:53:44 +08:00
libkmod: use C99 __func__ over GNU-specific __FUNCTION__
This commit is contained in:
parent
135bffd652
commit
87beacc99f
@ -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, ...)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user