summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-02-28 01:20:20 +0100
committerRobert Roth <robert.roth.off@gmail.com>2015-06-26 02:57:41 +0300
commit7b2416a8d17933436578ff827b735238ca0a4466 (patch)
tree6913511aaac472ced5a8805ae9af527b09abe200 /src
parentd006da7e5436bfa97572bd10203bb535bcc602d4 (diff)
downloadlibgtop-7b2416a8d17933436578ff827b735238ca0a4466.tar.gz
Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/slave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 0bbd9487..ef5cf4ac 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -40,7 +40,7 @@ handle_slave_connection (int input, int output)
glibtop_send_version (glibtop_global_server, output);
while (do_read (input, cmnd, sizeof (glibtop_command))) {
-#ifdef SLAVE_DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Slave %d received command "
"%llu from client.\n", getpid (), cmnd->command);
#endif
@@ -55,7 +55,7 @@ handle_slave_connection (int input, int output)
memset (parameter, 0, sizeof (parameter));
if (cmnd->data_size) {
-#ifdef SLAVE_DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Client has %llu bytes of data.\n",
cmnd->data_size);
#endif