X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Funixsock.c;h=d800906ecc9e76c544486ce41f6f03b2762d1c81;hb=b2a7cb85e09f67cbaf114eb64bf736f3a24d9d55;hp=db75809432dc3542161a00d392a2af398d183ca2;hpb=aec20e4438a754fe2df160e01adea9f1285fe8af;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index db758094..d800906e 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -164,7 +164,7 @@ static void *us_handle_client (void *arg) free (arg); arg = NULL; - DEBUG ("Reading from fd #%i", fd); + DEBUG ("unixsock plugin: us_handle_client: Reading from fd #%i", fd); fhin = fdopen (fd, "r"); if (fhin == NULL) @@ -243,15 +243,15 @@ static void *us_handle_client (void *arg) } else if (strcasecmp (fields[0], "putval") == 0) { - handle_putval (fhout, fields, fields_num); + handle_putval (fhout, buffer); } else if (strcasecmp (fields[0], "listval") == 0) { - handle_listval (fhout, fields, fields_num); + handle_listval (fhout, buffer); } else if (strcasecmp (fields[0], "putnotif") == 0) { - handle_putnotif (fhout, fields, fields_num); + handle_putnotif (fhout, buffer); } else if (strcasecmp (fields[0], "flush") == 0) { @@ -270,7 +270,7 @@ static void *us_handle_client (void *arg) } } /* while (fgets) */ - DEBUG ("Exiting.."); + DEBUG ("unixsock plugin: us_handle_client: Exiting.."); fclose (fhin); fclose (fhout);