From: Barnabás Pőcze Date: Thu, 4 May 2023 14:26:31 +0000 (+0200) Subject: dbus-internals: use `_DBUS_FUNCTION_NAME` in `_dbus_verbose()` X-Git-Tag: dbus-1.15.6~13^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8af5838573583baa198fc05d7bfcfd3c6cac994;p=thirdparty%2Fdbus.git dbus-internals: use `_DBUS_FUNCTION_NAME` in `_dbus_verbose()` dbus-internals.h already defines a macro which expands to the name of the current function based on C standard version, etc. So use that instead of hard-coding `__FUNCTION__`. Signed-off-by: Barnabás Pőcze --- diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 2387752dd..4aef24ca7 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -104,7 +104,7 @@ int _dbus_get_check_failed_count (void); DBUS_PRIVATE_EXPORT void _dbus_verbose_real (const char *file, const int line, const char *function, const char *format,...) _DBUS_GNUC_PRINTF (4, 5); -# define _dbus_verbose(fmt,...) _dbus_verbose_real( __FILE__,__LINE__,__FUNCTION__,fmt, ## __VA_ARGS__) +# define _dbus_verbose(fmt,...) _dbus_verbose_real( __FILE__,__LINE__,_DBUS_FUNCTION_NAME,fmt, ## __VA_ARGS__) #else DBUS_PRIVATE_EXPORT void _dbus_verbose_real (const char *format,