Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
This commit is contained in:
committed by
Robert Roth
parent
d006da7e54
commit
7b2416a8d1
@@ -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
|
||||
|
Reference in New Issue
Block a user