From: octo Date: Thu, 15 Jun 2006 20:28:20 +0000 (+0000) Subject: solaris-fixes branch: Complain in the syslog if `swapctl' failes. X-Git-Tag: collectd-3.9.4~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=da55f581e30ff102cd60155a9e04e65fa9328b50;p=collectd.git solaris-fixes branch: Complain in the syslog if `swapctl' failes. Shouldn't happen, but one ought to know if it does. --- diff --git a/src/swap.c b/src/swap.c index 86df6f75..1595cdec 100644 --- a/src/swap.c +++ b/src/swap.c @@ -149,7 +149,11 @@ static void swap_read (void) struct anoninfo ai; if (swapctl (SC_AINFO, &ai) == -1) + { + syslog (LOG_ERR, "swap plugin: swapctl failed: %s", + strerror (errno)); return; + } /* * Calculations from: