[libgtop] Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
- Date: Thu, 25 Jun 2015 23:58:16 +0000 (UTC)
commit 7b2416a8d17933436578ff827b735238ca0a4466
Author: Benoit Dejean <bdejean gmail com>
Date: Sat Feb 28 01:20:20 2015 +0100
Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
src/daemon/slave.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 0bbd948..ef5cf4a 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]