summaryrefslogtreecommitdiff
path: root/lib/open.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 /lib/open.c
parenta3a16707b58bc9d652c179dfe615f5d93ffc1540 (diff)
downloadlibgtop-a93dc2526d3248d115c5ff9ea8ea2a4dc57e7648.tar.gz
The DEBUG macro enabled by --enable-debug is actually LIBGTOP_ENABLE_DEBUG.
Diffstat (limited to 'lib/open.c')
-rw-r--r--lib/open.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/open.c b/lib/open.c
index dbce2287..a3d4fdd6 100644
--- a/lib/open.c
+++ b/lib/open.c
@@ -47,7 +47,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
server->error_method = GLIBTOP_ERROR_METHOD_DEFAULT;
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "SIZEOF: %u - %u - %u - %u - %u - %u\n",
sizeof (glibtop_command), sizeof (glibtop_response),
sizeof (glibtop_mountentry), sizeof (glibtop_union),
@@ -59,7 +59,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
server->features = 0;
break;
case GLIBTOP_METHOD_INET:
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Connecting to '%s' port %ld.\n",
server->server_host, server->server_port);
#endif
@@ -68,7 +68,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
(server->server_host, server->server_port,
&server->socket);
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Connect Type is %d.\n", connect_type);
#endif
@@ -77,14 +77,14 @@ glibtop_open_l (glibtop *server, const char *program_name,
server->features = -1;
break;
case GLIBTOP_METHOD_UNIX:
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Connecting to Unix Domain Socket.\n");
#endif
connect_type = glibtop_make_connection
("unix", 0, &server->socket);
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Connect Type is %d.\n", connect_type);
#endif
@@ -93,7 +93,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
server->features = -1;
break;
case GLIBTOP_METHOD_PIPE:
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Opening pipe to server (%s).\n",
LIBGTOP_SERVER);
#endif
@@ -165,7 +165,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
memcpy (&server->sysdeps, &sysdeps, sizeof (glibtop_sysdeps));
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Server features are %lu.\n",
server->features);
#endif
@@ -174,7 +174,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
/* In any case, we call the open functions of our own sysdeps
* directory. */
-#ifdef DEBUG
+#ifdef LIBGTOP_ENABLE_DEBUG
fprintf (stderr, "Calling sysdeps open function.\n");
#endif