diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2023-05-04 16:26:31 +0200 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2023-05-15 18:56:09 +0000 |
commit | e8af5838573583baa198fc05d7bfcfd3c6cac994 (patch) | |
tree | 2e75fa83da3496e32bd13346a4ec7f7dd3dc8eb8 | |
parent | 16232bdd339cb8bf4ef9e7d51ce1bcafa574155a (diff) | |
download | dbus-e8af5838573583baa198fc05d7bfcfd3c6cac994.tar.gz |
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 <pobrn@protonmail.com>
-rw-r--r-- | dbus/dbus-internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 2387752d..4aef24ca 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, |