diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-01-31 09:47:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-01-31 09:47:21 +0000 |
commit | c4ad2cacffc201384df035846b3b093f17cb7bd0 (patch) | |
tree | 9677cabed1638c0535663c3117a281da45f29802 /src/exit/gnunet-helper-exit-windows.c | |
parent | cfca0204512deb45dcb85aeb18c09b1f6d2d5ac3 (diff) | |
download | gnunet-c4ad2cacffc201384df035846b3b093f17cb7bd0.tar.gz gnunet-c4ad2cacffc201384df035846b3b093f17cb7bd0.zip |
-stuff
Diffstat (limited to 'src/exit/gnunet-helper-exit-windows.c')
-rw-r--r-- | src/exit/gnunet-helper-exit-windows.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/exit/gnunet-helper-exit-windows.c b/src/exit/gnunet-helper-exit-windows.c index 38ef66cac..adbed1a0c 100644 --- a/src/exit/gnunet-helper-exit-windows.c +++ b/src/exit/gnunet-helper-exit-windows.c | |||
@@ -54,7 +54,15 @@ | |||
54 | * Should we print (interesting|debug) messages that can happen during | 54 | * Should we print (interesting|debug) messages that can happen during |
55 | * normal operation? | 55 | * normal operation? |
56 | */ | 56 | */ |
57 | //#define DEBUG GNUNET_YES | 57 | #define DEBUG GNUNET_NO |
58 | |||
59 | #if DEBUG | ||
60 | /* FIXME: define with varargs... */ | ||
61 | #define LOG_DEBUG(msg) fprintf (stderr, "%s", msg); | ||
62 | #else | ||
63 | #deifne LOG_DEBUG(msg) do {} while (0) | ||
64 | #endif | ||
65 | |||
58 | 66 | ||
59 | /** | 67 | /** |
60 | * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) | 68 | * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) |
@@ -232,7 +240,7 @@ execute_shellcommand (const char *command) | |||
232 | (NULL == (pipe = _popen (command, "rt"))) ) | 240 | (NULL == (pipe = _popen (command, "rt"))) ) |
233 | return EINVAL; | 241 | return EINVAL; |
234 | 242 | ||
235 | #ifdef DEBUG | 243 | #if DEBUG |
236 | fprintf (stderr, "DEBUG: Command output: \n"); | 244 | fprintf (stderr, "DEBUG: Command output: \n"); |
237 | char output[LINE_LEN]; | 245 | char output[LINE_LEN]; |
238 | while (NULL != fgets (output, sizeof (output), pipe)) | 246 | while (NULL != fgets (output, sizeof (output), pipe)) |