[nagiosplug] check_pgsql: Add missing printf(3) argument

"Nagios Plugin Development" <[email protected]> Sat, 17 Aug 2013 21:10:12 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: b62f0fb444aae2c6ac31697dcfaa392ce2b85fc7
 Author: Holger Weiss <[email protected]>
   Date: Sat Aug 17 23:06:16 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=b62f0fb

check_pgsql: Add missing printf(3) argument

---

 plugins/check_pgsql.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index d3116b0..8d60701 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -594,7 +594,7 @@ do_query (PGconn *conn, char *query)
 	int my_status = STATE_UNKNOWN;
 
 	if (verbose)
-		printf ("Executing SQL query \"%s\".\n");
+		printf ("Executing SQL query \"%s\".\n", query);
 	res = PQexec (conn, query);
 
 	if (PGRES_TUPLES_OK != PQresultStatus (res)) {


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk