diff options
author | Benoit Dejean <bdejean@gmail.com> | 2015-02-28 00:20:28 +0100 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2015-06-26 02:57:41 +0300 |
commit | a93dc2526d3248d115c5ff9ea8ea2a4dc57e7648 (patch) | |
tree | b63ee74e6df329e02c93d381d38043150e0f2b59 /src/daemon | |
parent | a3a16707b58bc9d652c179dfe615f5d93ffc1540 (diff) | |
download | libgtop-a93dc2526d3248d115c5ff9ea8ea2a4dc57e7648.tar.gz |
The DEBUG macro enabled by --enable-debug is actually LIBGTOP_ENABLE_DEBUG.
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/io.c | 6 | ||||
-rw-r--r-- | src/daemon/main.c | 4 | ||||
-rw-r--r-- | src/daemon/version.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/io.c b/src/daemon/io.c index 15365b9e..bcc3afeb 100644 --- a/src/daemon/io.c +++ b/src/daemon/io.c @@ -27,7 +27,7 @@ void do_output (int s, glibtop_response *resp, off_t offset, size_t data_size, const void *data) { -#ifdef DEBUG +#ifdef LIBGTOP_ENABLE_DEBUG fprintf (stderr, "Really writing %d bytes at offset %lu.\n", sizeof (glibtop_response), offset); #endif @@ -44,7 +44,7 @@ do_output (int s, glibtop_response *resp, off_t offset, } if (resp->data_size) { -#ifdef DEBUG +#ifdef LIBGTOP_ENABLE_DEBUG fprintf (stderr, "Writing %d bytes of data.\n", resp->data_size); #endif @@ -88,7 +88,7 @@ do_read (int s, void *ptr, size_t total_size) tmp_ptr += nread; ptr = tmp_ptr; -#ifdef DEBUG +#ifdef LIBGTOP_ENABLE_DEBUG fprintf (stderr, "READ (%d): %d - %d - %d\n", nread, already_read, remaining, total_size); #endif diff --git a/src/daemon/main.c b/src/daemon/main.c index d21cda61..38f0c889 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -26,8 +26,8 @@ #ifndef PARENT_DEBUG #define PARENT_DEBUG 1 #endif -#ifndef DEBUG -#define DEBUG 1 +#ifndef LIBGTOP_ENABLE_DEBUG +#define LIBGTOP_ENABLE_DEBUG 1 #endif #endif diff --git a/src/daemon/version.c b/src/daemon/version.c index c559c4c8..28cbf79a 100644 --- a/src/daemon/version.c +++ b/src/daemon/version.c @@ -42,7 +42,7 @@ glibtop_send_version (glibtop *server, int fd) size = strlen (buffer) + 1; -#ifdef DEBUG +#ifdef LIBGTOP_ENABLE_DEBUG fprintf (stderr, "SERVER ID: |%s|\n", buffer); #endif |