]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-internals: use `_DBUS_FUNCTION_NAME` in `_dbus_verbose()`
authorBarnabás Pőcze <pobrn@protonmail.com>
Thu, 4 May 2023 14:26:31 +0000 (16:26 +0200)
committerSimon McVittie <smcv@collabora.com>
Mon, 15 May 2023 18:56:09 +0000 (18:56 +0000)
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 <pobrn@protonmail.com>
dbus/dbus-internals.h

index 2387752dde6ecc93c57178ec3282b9a061026249..4aef24ca72ee1b688bd5bbc7d0c36f74628a9d0d 100644 (file)
@@ -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,