From ebc8093ba5cb1b40ef4d777bdbe9501b69578e30 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 1 Feb 2017 22:36:38 +0100 Subject: [PATCH] Add dbus verbose channels. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99585 --- bus/activation-helper.c | 2 ++ bus/activation.c | 2 ++ bus/bus.c | 2 ++ bus/config-parser-trivial.c | 2 ++ bus/config-parser.c | 2 ++ bus/connection.c | 2 ++ bus/dir-watch-inotify.c | 2 ++ bus/dispatch.c | 2 ++ bus/driver.c | 2 ++ bus/expirelist.c | 2 ++ bus/main.c | 2 ++ bus/policy.c | 2 ++ bus/services.c | 2 ++ bus/signals.c | 2 ++ bus/test.c | 2 ++ dbus/dbus-auth-script.c | 2 ++ dbus/dbus-auth-util.c | 2 ++ dbus/dbus-auth.c | 2 ++ dbus/dbus-bus.c | 2 ++ dbus/dbus-connection.c | 2 ++ dbus/dbus-dataslot.c | 2 ++ dbus/dbus-file-unix.c | 2 ++ dbus/dbus-file-win.c | 1 + dbus/dbus-internals.c | 5 +++++ dbus/dbus-internals.h | 26 +++++++++++++++++++++----- dbus/dbus-keyring.c | 2 ++ dbus/dbus-mainloop.c | 2 ++ dbus/dbus-marshal-basic.c | 2 ++ dbus/dbus-marshal-header.c | 2 ++ dbus/dbus-marshal-recursive-util.c | 2 ++ dbus/dbus-marshal-recursive.c | 2 ++ dbus/dbus-marshal-validate.c | 1 + dbus/dbus-memory.c | 2 ++ dbus/dbus-mempool.c | 2 ++ dbus/dbus-message-factory.c | 2 ++ dbus/dbus-message-util.c | 2 ++ dbus/dbus-message.c | 2 ++ dbus/dbus-nonce.c | 2 ++ dbus/dbus-object-tree.c | 2 ++ dbus/dbus-pending-call.c | 2 ++ dbus/dbus-server-debug-pipe.c | 2 ++ dbus/dbus-server-socket.c | 2 ++ dbus/dbus-server.c | 2 ++ dbus/dbus-shell.c | 2 ++ dbus/dbus-socket-set-poll.c | 2 ++ dbus/dbus-spawn-win.c | 2 ++ dbus/dbus-spawn.c | 2 ++ dbus/dbus-sysdeps-unix.c | 2 ++ dbus/dbus-sysdeps-util-unix.c | 2 ++ dbus/dbus-sysdeps-util-win.c | 2 ++ dbus/dbus-sysdeps-win.c | 2 ++ dbus/dbus-transport-socket.c | 2 ++ dbus/dbus-transport-unix.c | 2 ++ dbus/dbus-transport.c | 2 ++ dbus/dbus-userdb-util.c | 2 ++ dbus/dbus-userdb.c | 2 ++ dbus/dbus-watch.c | 2 ++ test/test-utils.h | 3 +++ 58 files changed, 137 insertions(+), 5 deletions(-) diff --git a/bus/activation-helper.c b/bus/activation-helper.c index 394f393..993dd73 100644 --- a/bus/activation-helper.c +++ b/bus/activation-helper.c @@ -44,6 +44,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(default) + static BusDesktopFile * desktop_file_for_name (BusConfigParser *parser, const char *name, diff --git a/bus/activation.c b/bus/activation.c index 517af1e..6c60784 100644 --- a/bus/activation.c +++ b/bus/activation.c @@ -42,6 +42,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(activation) + struct BusActivation { int refcount; diff --git a/bus/bus.c b/bus/bus.c index b27b4a5..939c8ec 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -43,6 +43,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(bus) + #ifdef DBUS_CYGWIN #include #endif diff --git a/bus/config-parser-trivial.c b/bus/config-parser-trivial.c index d085fe7..8074619 100644 --- a/bus/config-parser-trivial.c +++ b/bus/config-parser-trivial.c @@ -30,6 +30,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(config) + /** * TRIVIAL parser for bus configuration file. */ diff --git a/bus/config-parser.c b/bus/config-parser.c index b776a2d..851519e 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -35,6 +35,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(config) + typedef enum { /* we ignore policies for unknown groups/users */ diff --git a/bus/connection.c b/bus/connection.c index 5144218..4ec06d4 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -37,6 +37,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(connection) + /* Trim executed commands to this length; we want to keep logs readable */ #define MAX_LOG_COMMAND_LEN 50 diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 447dc2d..0922826 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -42,6 +42,8 @@ #include #include "dir-watch.h" +DBUS_VERBOSE_CHANNEL(inotify) + #define MAX_DIRS_TO_WATCH 128 #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event)) #define INOTIFY_BUF_LEN (1024 * (INOTIFY_EVENT_SIZE + 16)) diff --git a/bus/dispatch.c b/bus/dispatch.c index 620fd36..e77966a 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -42,6 +42,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(dispatch) + /* This is hard-coded in the files in valid-config-files-*. We have to use * the debug-pipe transport because the tests in this file require that * dbus_connection_open_private() does not block. */ diff --git a/bus/driver.c b/bus/driver.c index ae29df6..6894172 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -43,6 +43,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(driver) + typedef enum { BUS_DRIVER_FOUND_SELF, diff --git a/bus/expirelist.c b/bus/expirelist.c index 4a39752..4818623 100644 --- a/bus/expirelist.c +++ b/bus/expirelist.c @@ -28,6 +28,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(default) + struct BusExpireList { DBusList *items; /**< List of BusExpireItem */ diff --git a/bus/main.c b/bus/main.c index 5e26820..6800423 100644 --- a/bus/main.c +++ b/bus/main.c @@ -46,6 +46,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(daemon) + static BusContext *context; #ifdef DBUS_UNIX diff --git a/bus/policy.c b/bus/policy.c index dd0ac86..0e8b4c8 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -30,6 +30,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(policy) + BusPolicyRule* bus_policy_rule_new (BusPolicyRuleType type, dbus_bool_t allow) diff --git a/bus/services.c b/bus/services.c index 127edda..2091551 100644 --- a/bus/services.c +++ b/bus/services.c @@ -38,6 +38,8 @@ #include "selinux.h" #include "apparmor.h" +DBUS_VERBOSE_CHANNEL(service) + struct BusService { int refcount; diff --git a/bus/signals.c b/bus/signals.c index 838161f..fd1ad8d 100644 --- a/bus/signals.c +++ b/bus/signals.c @@ -30,6 +30,8 @@ #include "utils.h" #include +DBUS_VERBOSE_CHANNEL(signal) + struct BusMatchRule { int refcount; /**< reference count */ diff --git a/bus/test.c b/bus/test.c index 76960a3..a27a764 100644 --- a/bus/test.c +++ b/bus/test.c @@ -29,6 +29,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(test) + /* The "debug client" watch/timeout handlers don't dispatch messages, * as we manually pull them in order to verify them. This is why they * are different from the real handlers in connection.c diff --git a/dbus/dbus-auth-script.c b/dbus/dbus-auth-script.c index 23b665a..b6e066a 100644 --- a/dbus/dbus-auth-script.c +++ b/dbus/dbus-auth-script.c @@ -34,6 +34,8 @@ #include "dbus-credentials.h" #include "dbus-internals.h" +DBUS_VERBOSE_CHANNEL(auth) + /** * @defgroup DBusAuthScript code for running unit test scripts for DBusAuth * @ingroup DBusInternals diff --git a/dbus/dbus-auth-util.c b/dbus/dbus-auth-util.c index b1a5ee4..b27c097 100644 --- a/dbus/dbus-auth-util.c +++ b/dbus/dbus-auth-util.c @@ -26,6 +26,8 @@ #include "dbus-test.h" #include "dbus-auth.h" +DBUS_VERBOSE_CHANNEL(auth) + /** * @addtogroup DBusAuth * @{ diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index ea43ce7..e36de16 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -31,6 +31,8 @@ #include "dbus-protocol.h" #include "dbus-credentials.h" +DBUS_VERBOSE_CHANNEL(auth) + /** * @defgroup DBusAuth Authentication * @ingroup DBusInternals diff --git a/dbus/dbus-bus.c b/dbus/dbus-bus.c index b96b1b2..835924b 100644 --- a/dbus/dbus-bus.c +++ b/dbus/dbus-bus.c @@ -33,6 +33,8 @@ #include "dbus-connection-internal.h" #include "dbus-string.h" +DBUS_VERBOSE_CHANNEL(bus) + /** * @defgroup DBusBus Message bus APIs * @ingroup DBus diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index f42dac4..218e344 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -45,6 +45,8 @@ #include "dbus-bus.h" #include "dbus-marshal-basic.h" +DBUS_VERBOSE_CHANNEL(connection) + #ifdef DBUS_DISABLE_CHECKS #define TOOK_LOCK_CHECK(connection) #define RELEASING_LOCK_CHECK(connection) diff --git a/dbus/dbus-dataslot.c b/dbus/dbus-dataslot.c index a4b3bfc..1f1d1f8 100644 --- a/dbus/dbus-dataslot.c +++ b/dbus/dbus-dataslot.c @@ -25,6 +25,8 @@ #include "dbus-dataslot.h" #include "dbus-threads-internal.h" +DBUS_VERBOSE_CHANNEL(dataslot) + /** * @defgroup DBusDataSlot Data slots * @ingroup DBusInternals diff --git a/dbus/dbus-file-unix.c b/dbus/dbus-file-unix.c index 830d3fe..8bcbe0f 100644 --- a/dbus/dbus-file-unix.c +++ b/dbus/dbus-file-unix.c @@ -37,6 +37,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(file) + #ifndef O_BINARY #define O_BINARY 0 #endif diff --git a/dbus/dbus-file-win.c b/dbus/dbus-file-win.c index bdd0dcf..1fd69b3 100644 --- a/dbus/dbus-file-win.c +++ b/dbus/dbus-file-win.c @@ -31,6 +31,7 @@ #include +DBUS_VERBOSE_CHANNEL(file) /** * Thin wrapper around the read() system call that appends diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index 9e515da..b0b3fb3 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -36,6 +36,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(default) + /** * @defgroup DBusInternals D-Bus secret internal implementation details * @brief Documentation useful when developing or debugging D-Bus itself. @@ -383,6 +385,7 @@ dbus_bool_t _dbus_get_verbose (void) */ void _dbus_verbose_real ( + const char *channel, #ifdef DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS const char *file, const int line, @@ -420,6 +423,8 @@ _dbus_verbose_real ( else need_pid = FALSE; + fprintf (stderr, "%s: ", channel); + va_start (args, format); #ifdef DBUS_USE_OUTPUT_DEBUG_STRING { diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index beff1e2..7d85d4a 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -94,15 +94,31 @@ void _dbus_warn_return_if_fail (const char *function, #define DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS #endif +#ifdef __GNUC__ +#define DBUS_UNUSED __attribute__ ((unused)) +#else +#define DBUS_UNUSED +#endif + +#if DBUS_ENABLE_VERBOSE_MODE +#define DBUS_VERBOSE_CHANNEL(a) static DBUS_UNUSED const char *_DBUS_VERBOSE_CHANNEL = #a; static DBUS_UNUSED const char *_G_LOG_DOMAIN = #a; +#ifdef G_LOG_DOMAIN +#undef G_LOG_DOMAIN +#endif +#define G_LOG_DOMAIN _G_LOG_DOMAIN +#else +#define _DBUS_VERBOSE_CHANNEL "" +#endif + #ifdef DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS 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__) +void _dbus_verbose_real (const char *channel, const char *file, const int line, const char *function, + const char *format,...) _DBUS_GNUC_PRINTF (5, 6); +# define _dbus_verbose(fmt,...) _dbus_verbose_real(_DBUS_VERBOSE_CHANNEL, __FILE__,__LINE__,__FUNCTION__,fmt, ## __VA_ARGS__) #else DBUS_PRIVATE_EXPORT -void _dbus_verbose_real (const char *format, - ...) _DBUS_GNUC_PRINTF (1, 2); +void _dbus_verbose_real (const char *channel, const char *format, + ...) _DBUS_GNUC_PRINTF (2, 3); # define _dbus_verbose _dbus_verbose_real #endif DBUS_PRIVATE_EXPORT diff --git a/dbus/dbus-keyring.c b/dbus/dbus-keyring.c index 6512a1d..a4a1788 100644 --- a/dbus/dbus-keyring.c +++ b/dbus/dbus-keyring.c @@ -28,6 +28,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(keyring) + /** * @defgroup DBusKeyring keyring class * @ingroup DBusInternals diff --git a/dbus/dbus-mainloop.c b/dbus/dbus-mainloop.c index 2e3f3d1..2d3d064 100644 --- a/dbus/dbus-mainloop.c +++ b/dbus/dbus-mainloop.c @@ -33,6 +33,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(mainloop) + #define MAINLOOP_SPEW 0 struct DBusLoop diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c index 4352e52..36e9e04 100644 --- a/dbus/dbus-marshal-basic.c +++ b/dbus/dbus-marshal-basic.c @@ -29,6 +29,8 @@ #include +DBUS_VERBOSE_CHANNEL(marshal) + #if !defined(PRIx64) && defined(DBUS_WIN) #define PRIx64 "I64x" #endif diff --git a/dbus/dbus-marshal-header.c b/dbus/dbus-marshal-header.c index 74b39cd..9296cf1 100644 --- a/dbus/dbus-marshal-header.c +++ b/dbus/dbus-marshal-header.c @@ -27,6 +27,8 @@ #include "dbus-marshal-recursive.h" #include "dbus-marshal-byteswap.h" +DBUS_VERBOSE_CHANNEL(marshal) + /** * @addtogroup DBusMarshal * diff --git a/dbus/dbus-marshal-recursive-util.c b/dbus/dbus-marshal-recursive-util.c index d43972f..9cd414b 100644 --- a/dbus/dbus-marshal-recursive-util.c +++ b/dbus/dbus-marshal-recursive-util.c @@ -31,6 +31,8 @@ #include "dbus-internals.h" #include +DBUS_VERBOSE_CHANNEL(marshal) + #if !defined(PRIx64) && defined(DBUS_WIN) #define PRIx64 "I64x" #endif diff --git a/dbus/dbus-marshal-recursive.c b/dbus/dbus-marshal-recursive.c index 417068c..eb87179 100644 --- a/dbus/dbus-marshal-recursive.c +++ b/dbus/dbus-marshal-recursive.c @@ -27,6 +27,8 @@ #include "dbus-signature.h" #include "dbus-internals.h" +DBUS_VERBOSE_CHANNEL(marshal) + /** * @addtogroup DBusMarshal * @{ diff --git a/dbus/dbus-marshal-validate.c b/dbus/dbus-marshal-validate.c index 578b09f..7187d16 100644 --- a/dbus/dbus-marshal-validate.c +++ b/dbus/dbus-marshal-validate.c @@ -29,6 +29,7 @@ #include "dbus-signature.h" #include "dbus-string.h" +DBUS_VERBOSE_CHANNEL(marshal) /** * @addtogroup DBusMarshal * diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index a9c2f7a..f2a873a 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -29,6 +29,8 @@ #include "dbus-threads.h" #include +DBUS_VERBOSE_CHANNEL(memory) + /** * @defgroup DBusMemory Memory Allocation * @ingroup DBus diff --git a/dbus/dbus-mempool.c b/dbus/dbus-mempool.c index 5246615..5cacc94 100644 --- a/dbus/dbus-mempool.c +++ b/dbus/dbus-mempool.c @@ -26,6 +26,8 @@ #include "dbus-internals.h" #include "dbus-valgrind-internal.h" +DBUS_VERBOSE_CHANNEL(mempool) + /** * @defgroup DBusMemPool memory pools * @ingroup DBusInternals diff --git a/dbus/dbus-message-factory.c b/dbus/dbus-message-factory.c index a3e2b6a..3c40fd9 100644 --- a/dbus/dbus-message-factory.c +++ b/dbus/dbus-message-factory.c @@ -31,6 +31,8 @@ #include "dbus-test.h" #include +DBUS_VERBOSE_CHANNEL(message) + typedef enum { CHANGE_TYPE_ADJUST, diff --git a/dbus/dbus-message-util.c b/dbus/dbus-message-util.c index 7402061..a10fcce 100644 --- a/dbus/dbus-message-util.c +++ b/dbus/dbus-message-util.c @@ -32,6 +32,8 @@ #include "dbus-sysdeps-unix.h" #endif +DBUS_VERBOSE_CHANNEL(message) + #ifdef __linux__ /* Necessary for the Linux-specific fd leak checking code only */ #include diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index 0a27f52..05497af 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -41,6 +41,8 @@ #include +DBUS_VERBOSE_CHANNEL(message) + #define _DBUS_TYPE_IS_STRINGLIKE(type) \ (type == DBUS_TYPE_STRING || type == DBUS_TYPE_SIGNATURE || \ type == DBUS_TYPE_OBJECT_PATH) diff --git a/dbus/dbus-nonce.c b/dbus/dbus-nonce.c index bc3286c..df4707f 100644 --- a/dbus/dbus-nonce.c +++ b/dbus/dbus-nonce.c @@ -30,6 +30,8 @@ #include +DBUS_VERBOSE_CHANNEL(nonce) + static dbus_bool_t do_check_nonce (DBusSocket fd, const DBusString *nonce, DBusError *error) { diff --git a/dbus/dbus-object-tree.c b/dbus/dbus-object-tree.c index afbd61f..9138fbb 100644 --- a/dbus/dbus-object-tree.c +++ b/dbus/dbus-object-tree.c @@ -31,6 +31,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(object) + /** * @defgroup DBusObjectTree A hierarchy of objects with container-contained relationship * @ingroup DBusInternals diff --git a/dbus/dbus-pending-call.c b/dbus/dbus-pending-call.c index be53410..734824c 100644 --- a/dbus/dbus-pending-call.c +++ b/dbus/dbus-pending-call.c @@ -31,6 +31,8 @@ #include "dbus-threads.h" #include "dbus-test.h" +DBUS_VERBOSE_CHANNEL(pending-call) + /** * @defgroup DBusPendingCallInternals DBusPendingCall implementation details * @ingroup DBusInternals diff --git a/dbus/dbus-server-debug-pipe.c b/dbus/dbus-server-debug-pipe.c index ca0be87..f5da645 100644 --- a/dbus/dbus-server-debug-pipe.c +++ b/dbus/dbus-server-debug-pipe.c @@ -31,6 +31,8 @@ #include "dbus-string.h" #include "dbus-protocol.h" +DBUS_VERBOSE_CHANNEL(server) + #ifdef DBUS_ENABLE_EMBEDDED_TESTS /** diff --git a/dbus/dbus-server-socket.c b/dbus/dbus-server-socket.c index d716f50..3c6b52b 100644 --- a/dbus/dbus-server-socket.c +++ b/dbus/dbus-server-socket.c @@ -30,6 +30,8 @@ #include "dbus-nonce.h" #include "dbus-string.h" +DBUS_VERBOSE_CHANNEL(server) + /** * @defgroup DBusServerSocket DBusServer implementations for SOCKET * @ingroup DBusInternals diff --git a/dbus/dbus-server.c b/dbus/dbus-server.c index ea9aff2..7487658 100644 --- a/dbus/dbus-server.c +++ b/dbus/dbus-server.c @@ -32,6 +32,8 @@ #include "dbus-address.h" #include "dbus-protocol.h" +DBUS_VERBOSE_CHANNEL(server) + /** * @defgroup DBusServer DBusServer * @ingroup DBus diff --git a/dbus/dbus-shell.c b/dbus/dbus-shell.c index 44cbbcf..4155756 100644 --- a/dbus/dbus-shell.c +++ b/dbus/dbus-shell.c @@ -31,6 +31,8 @@ #include "dbus-shell.h" #include "dbus-string.h" +DBUS_VERBOSE_CHANNEL(shell) + /* Single quotes preserve the literal string exactly. escape * sequences are not allowed; not even \' - if you want a ' * in the quoted text, you have to do something like 'foo'\''bar' diff --git a/dbus/dbus-socket-set-poll.c b/dbus/dbus-socket-set-poll.c index 623e28f..c3602e5 100644 --- a/dbus/dbus-socket-set-poll.c +++ b/dbus/dbus-socket-set-poll.c @@ -30,6 +30,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(socket) + #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct { diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c index cc5bfc3..82839db 100644 --- a/dbus/dbus-spawn-win.c +++ b/dbus/dbus-spawn-win.c @@ -41,6 +41,8 @@ #include "dbus-test.h" #include "dbus-protocol.h" +DBUS_VERBOSE_CHANNEL(spawn) + #define WIN32_LEAN_AND_MEAN #include //#define STRICT diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index 655bfe9..03f3aaa 100644 --- a/dbus/dbus-spawn.c +++ b/dbus/dbus-spawn.c @@ -52,6 +52,8 @@ extern char **environ; #endif +DBUS_VERBOSE_CHANNEL(spawn) + /** * @addtogroup DBusInternalsUtils * @{ diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 377e9e2..c088d83 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -93,6 +93,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(sysdeps) + #ifndef O_BINARY #define O_BINARY 0 #endif diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c index d9e8c4f..d78a69f 100644 --- a/dbus/dbus-sysdeps-util-unix.c +++ b/dbus/dbus-sysdeps-util-unix.c @@ -58,6 +58,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(sysdeps) + #ifndef O_BINARY #define O_BINARY 0 #endif diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index eb860f4..50ff774 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -36,6 +36,8 @@ #include "dbus-memory.h" #include "dbus-pipe.h" +DBUS_VERBOSE_CHANNEL(sysdeps) + #include #include #if HAVE_ERRNO_H diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 77c5b74..7948bf3 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -55,6 +55,8 @@ #include #include +DBUS_VERBOSE_CHANNEL(sysdeps) + /* Declarations missing in mingw's and windows sdk 7.0 headers */ extern BOOL WINAPI ConvertStringSidToSidA (LPCSTR StringSid, PSID *Sid); extern BOOL WINAPI ConvertSidToStringSidA (PSID Sid, LPSTR *StringSid); diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c index 0b8efe7..d3f7a37 100644 --- a/dbus/dbus-transport-socket.c +++ b/dbus/dbus-transport-socket.c @@ -30,6 +30,8 @@ #include "dbus-watch.h" #include "dbus-credentials.h" +DBUS_VERBOSE_CHANNEL(transport) + /** * @defgroup DBusTransportSocket DBusTransport implementations for sockets * @ingroup DBusInternals diff --git a/dbus/dbus-transport-unix.c b/dbus/dbus-transport-unix.c index f2b1f09..12effaf 100644 --- a/dbus/dbus-transport-unix.c +++ b/dbus/dbus-transport-unix.c @@ -34,6 +34,8 @@ #include "dbus-sysdeps-unix.h" #include "dbus-test.h" +DBUS_VERBOSE_CHANNEL(transport) + /** * @defgroup DBusTransportUnix DBusTransport implementations for UNIX * @ingroup DBusInternals diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index 9ff9bef..8cf6c3f 100644 --- a/dbus/dbus-transport.c +++ b/dbus/dbus-transport.c @@ -36,6 +36,8 @@ #include "dbus-server-debug-pipe.h" #endif +DBUS_VERBOSE_CHANNEL(transport) + /** * @defgroup DBusTransport DBusTransport object * @ingroup DBusInternals diff --git a/dbus/dbus-userdb-util.c b/dbus/dbus-userdb-util.c index 44a1a78..0e51d32 100644 --- a/dbus/dbus-userdb-util.c +++ b/dbus/dbus-userdb-util.c @@ -33,6 +33,8 @@ #include #endif +DBUS_VERBOSE_CHANNEL(userdb) + /** * @addtogroup DBusInternalsUtils * @{ diff --git a/dbus/dbus-userdb.c b/dbus/dbus-userdb.c index 5d386fa..7bae464 100644 --- a/dbus/dbus-userdb.c +++ b/dbus/dbus-userdb.c @@ -30,6 +30,8 @@ #include "dbus-credentials.h" #include +DBUS_VERBOSE_CHANNEL(userdb) + /** * @addtogroup DBusInternalsUtils * @{ diff --git a/dbus/dbus-watch.c b/dbus/dbus-watch.c index 9842296..6c365e4 100644 --- a/dbus/dbus-watch.c +++ b/dbus/dbus-watch.c @@ -26,6 +26,8 @@ #include "dbus-watch.h" #include "dbus-list.h" +DBUS_VERBOSE_CHANNEL(watch) + /** * @defgroup DBusWatchInternals DBusWatch implementation details * @ingroup DBusInternals diff --git a/test/test-utils.h b/test/test-utils.h index 39fae77..51117a0 100644 --- a/test/test-utils.h +++ b/test/test-utils.h @@ -8,6 +8,9 @@ #include #include + +DBUS_VERBOSE_CHANNEL(test) + typedef DBusLoop TestMainContext; TestMainContext *test_main_context_get (void); -- 2.6.6