diff options
| author | Michael Albinus | 2012-05-07 16:57:18 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-05-07 16:57:18 +0200 |
| commit | 9a4b36f891acd6e620c1d7e6f3fcedc368003ee7 (patch) | |
| tree | bffca03e95b57287051277f1f63a4ede36368d34 /src/dbusbind.c | |
| parent | 1241b724c80c73731c7e5710a98886b745a211a8 (diff) | |
| download | emacs-9a4b36f891acd6e620c1d7e6f3fcedc368003ee7.tar.gz emacs-9a4b36f891acd6e620c1d7e6f3fcedc368003ee7.zip | |
* dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in
batch mode.
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 0ea08d7bf0e..446d060c89b 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -111,12 +111,13 @@ static int xd_in_read_queued_messages = 0; | |||
| 111 | /* Macros for debugging. In order to enable them, build with | 111 | /* Macros for debugging. In order to enable them, build with |
| 112 | "env MYCPPFLAGS='-DDBUS_DEBUG -Wall' make". */ | 112 | "env MYCPPFLAGS='-DDBUS_DEBUG -Wall' make". */ |
| 113 | #ifdef DBUS_DEBUG | 113 | #ifdef DBUS_DEBUG |
| 114 | #define XD_DEBUG_MESSAGE(...) \ | 114 | #define XD_DEBUG_MESSAGE(...) \ |
| 115 | do { \ | 115 | do { \ |
| 116 | char s[1024]; \ | 116 | char s[1024]; \ |
| 117 | snprintf (s, sizeof s, __VA_ARGS__); \ | 117 | snprintf (s, sizeof s, __VA_ARGS__); \ |
| 118 | printf ("%s: %s\n", __func__, s); \ | 118 | if (!noninteractive) \ |
| 119 | message ("%s: %s", __func__, s); \ | 119 | printf ("%s: %s\n", __func__, s); \ |
| 120 | message ("%s: %s", __func__, s); \ | ||
| 120 | } while (0) | 121 | } while (0) |
| 121 | #define XD_DEBUG_VALID_LISP_OBJECT_P(object) \ | 122 | #define XD_DEBUG_VALID_LISP_OBJECT_P(object) \ |
| 122 | do { \ | 123 | do { \ |