summaryrefslogtreecommitdiff
path: root/src/daemon/io.c
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-02-28 00:20:28 +0100
committerRobert Roth <robert.roth.off@gmail.com>2015-06-26 02:57:41 +0300
commita93dc2526d3248d115c5ff9ea8ea2a4dc57e7648 (patch)
treeb63ee74e6df329e02c93d381d38043150e0f2b59 /src/daemon/io.c
parenta3a16707b58bc9d652c179dfe615f5d93ffc1540 (diff)
downloadlibgtop-a93dc2526d3248d115c5ff9ea8ea2a4dc57e7648.tar.gz
The DEBUG macro enabled by --enable-debug is actually LIBGTOP_ENABLE_DEBUG.
Diffstat (limited to 'src/daemon/io.c')
-rw-r--r--src/daemon/io.c6
1 files changed, 3 insertions, 3 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