From da55f581e30ff102cd60155a9e04e65fa9328b50 Mon Sep 17 00:00:00 2001 From: octo Date: Thu, 15 Jun 2006 20:28:20 +0000 Subject: [PATCH] solaris-fixes branch: Complain in the syslog if `swapctl' failes. Shouldn't happen, but one ought to know if it does. --- src/swap.c | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.11.0