From a795179f29ec002bb2048635aef7642c994a911c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 27 Mar 2007 16:31:51 +0200 Subject: [PATCH] {processes,unixsock} plugin: Remove annoying debug messages. --- src/processes.c | 9 +++------ src/unixsock.c | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/processes.c b/src/processes.c index 7d918d4f..5fd12212 100644 --- a/src/processes.c +++ b/src/processes.c @@ -622,14 +622,11 @@ int ps_read_process (int pid, procstat_t *ps, char *state) fields_len = strsplit (buffer, fields, 64); if (fields_len < 24) { - DEBUG ("`%s' has only %i fields..", - filename, fields_len); + DEBUG ("processes plugin: ps_read_process (pid = %i):" + " `%s' has only %i fields..", + (int) pid, filename, fields_len); return (-1); } - else if (fields_len != 41) - { - DEBUG ("WARNING: (fields_len = %i) != 41", fields_len); - } /* copy the name, strip brackets in the process */ name_len = strlen (fields[1]) - 2; diff --git a/src/unixsock.c b/src/unixsock.c index 4cf3c134..95ccb9da 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -863,9 +863,7 @@ static int us_shutdown (void) if (listen_thread != (pthread_t) 0) { - DEBUG ("unixsock plugin: Sending SIGTERM to listening thread"); pthread_kill (listen_thread, SIGTERM); - DEBUG ("unixsock plugin: Waiting for thread to terminate"); pthread_join (listen_thread, &ret); listen_thread = (pthread_t) 0; } -- 2.11.0