[monitoring-plugins] fix superfluous argument to printf (#fixes 1308)

Sven Nierlein git at monitoring-plugins.org
Mon Nov 7 23:50:11 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: 0dc65376126e65392cc8127cee819669c1966dbe
 Author: Sven Nierlein <sven at nierlein.de>
   Date: Mon Nov  7 23:39:04 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0dc6537

fix superfluous argument to printf (#fixes 1308)

Signed-off-by: Sven Nierlein <sven at nierlein.de>

---

 plugins/check_load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_load.c b/plugins/check_load.c
index a96435f..b1cc498 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -160,7 +160,7 @@ main (int argc, char **argv)
 	    sscanf (input_buffer, "%*[^l]load averages: %lf, %lf, %lf", &la1, &la5, &la15);
     }
     else {
-		printf (_("could not parse load from uptime: %s\n"), result, PATH_TO_UPTIME);
+		printf (_("could not parse load from uptime %s: %s\n"), PATH_TO_UPTIME, result);
 		return STATE_UNKNOWN;
     }
 



More information about the Commits mailing list