From eaf3cb27f4b5bae479014a34c7decd3feedcf8fd Mon Sep 17 00:00:00 2001
From: Thomas Guyot-Sionnest <dermoth@aei.ca>
Date: Thu, 22 Apr 2010 08:57:14 -0400
Subject: Add newline after "Usage:" in --help


diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index ba35197..2a1875c 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1418,7 +1418,7 @@ void print_help(void){
 void
 print_usage(void){
 
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s [-v] [-u] [-s serverip] [-r requestedip] [-t timeout]\n",progname);
   printf ("                  [-i interface] [-m mac]\n");
 
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 5f0224d..6d8ba09 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -1344,6 +1344,6 @@ print_help(void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf(" %s [options] [-H] host1 host2 hostN\n", progname);
 }
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 1480494..7efa596 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -461,6 +461,6 @@ print_help (void)
 void
 print_usage(void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf ("%s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname);
 }
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index a569c19..ff27b39 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -450,7 +450,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf (" %s -H <host> -C <command> [-fqv] [-1|-2] [-4|-6]\n"
 	        "       [-S [lines]] [-E [lines]] [-t timeout] [-i identity]\n"
 	        "       [-l user] [-n name] [-s servicelist] [-O outputfile]\n"
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index fe497d4..d4e39e0 100644
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
@@ -271,7 +271,7 @@ void
 print_usage(void)
 {
 
-	printf(_("Usage:"));
+	printf("%s\n", _("Usage:"));
 	printf(" %s (-s | -h) -d val1[,val2,...,valn] [-l label]\n", progname);
 	printf("[-w threshold] [-c threshold] [-v] [--help]\n");
 
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 6f4d8e7..06f59c8 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -351,7 +351,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf ("%s -l <query_address> [-H <host>] [-p <server port>]\n", progname);
   printf (" [-T <query type>] [-w <warning interval>] [-c <critical interval>]\n");
   printf (" [-t <timeout>] [-a <expected answer address>] [-v]\n");
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index f2ed983..4913625 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -977,7 +977,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s -w limit -c limit [-W limit] [-K limit] {-p path | -x device}\n", progname);
   printf ("[-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n");
   printf ("[-t timeout] [-u unit] [-v] [-X type]\n");
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 4316712..73b560c 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -483,6 +483,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf ("%s -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]\n", progname);
 }
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index e72bf30..3cfc9ed 100644
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
@@ -119,6 +119,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s <integer state> [optional text]\n", progname);
 }
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index d2c945d..dd3f86d 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -429,6 +429,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s <host_address> -w limit -c limit [-b size] [-n number] [-T number] [-i number]\n", progname);
 }
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 815c72d..5496c4d 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -328,7 +328,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s [-hvV] [-P port] [-t timeout] [-g game_field] [-m map_field] [-p ping_field] [-G game-time] [-H hostname] <game> <ip_address>\n", progname);
 }
 
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 97411d1..51a0099 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -411,6 +411,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host [-C community]\n", progname);
 }
diff --git a/plugins/check_http.c b/plugins/check_http.c
index a21669c..7f773c8 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1430,7 +1430,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]\n",progname);
   printf ("       [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-a auth]\n");
   printf ("       [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]\n");
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index b051739..b942461 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -524,7 +524,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf ("%s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]",progname);
   printf (" [-O <auto-off>] [-n <nagios>]\n");
 }
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 11644a1..b933ff2 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -449,7 +449,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf (" %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]",progname);
   printf ("\n       [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n",
 #ifdef HAVE_LDAP_SET_OPTION
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 99e2a15..1bdb06a 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -322,6 +322,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
 }
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 07013ee..d6162f3 100644
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
@@ -379,7 +379,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n",progname);
   printf ("[-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n");
 }
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index b3caf4b..d9b4e53 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -422,7 +422,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
   printf (" %s [-d database] [-H host] [-P port] [-s socket]\n",progname);
   printf ("       [-u user] [-p password] [-S]\n");
 }
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c
index cae4718..cf9d8df 100644
--- a/plugins/check_mysql_query.c
+++ b/plugins/check_mysql_query.c
@@ -322,7 +322,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
   printf (" %s -q SQL_query [-w warn] [-c crit] [-H host] [-P port] [-s socket]\n",progname);
   printf ("       [-d database] [-u user] [-p password]\n");
 }
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 1a80916..6485aa9 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -310,6 +310,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
 }
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index e4d64e8..32d4ff6 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -756,7 +756,7 @@ void print_help(void)
 
 void print_usage(void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]\n",progname);
 	printf ("[-l params] [-d SHOWALL] [-u] [-t timeout]\n");
 }
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index e752bd9..ac89def 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -880,6 +880,6 @@ print_usage(void)
 {
 	printf ("%s\n", _("WARNING: check_ntp is deprecated. Please use check_ntp_peer or"));
 	printf ("%s\n\n", _("check_ntp_time instead."));
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf(" %s -H <host> [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
 }
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index abe91a5..62ac9ae 100644
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
@@ -715,7 +715,7 @@ void print_help(void){
 void
 print_usage(void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf(" %s -H <host> [-w <warn>] [-c <crit>] [-W <warn>] [-C <crit>]\n", progname);
 	printf("       [-j <warn>] [-k <crit>] [-v verbose]\n");
 }
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index 1ea3e89..f0f74b4 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -634,7 +634,7 @@ void print_help(void){
 void
 print_usage(void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf(" %s -H <host> [-w <warn>] [-c <crit>] [-v verbose]\n", progname);
 }
 
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 6e09286..81c5575 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -1682,6 +1682,6 @@ void print_help(void)
 
 void print_usage(void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n",progname);
 }
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 606799f..16ada20 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -464,6 +464,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n", progname);
 }
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 06e1127..19c3117 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -474,7 +474,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf ("%s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n", progname);
 	printf (" [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n");
 }
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index db8e623..ecdd618 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -598,7 +598,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n", progname);
   printf (" [-p packets] [-t timeout] [-4|-6]\n");
 }
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 8655f6a..2151fb3 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -757,7 +757,7 @@ be the total number of running processes\n\n"));
 void
 print_usage (void)
 {
-  printf (_("Usage: "));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n", progname);
   printf (" [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n");
   printf (" [-C command] [-t timeout] [-v]\n");
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index d5907dd..61d84fb 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -382,7 +382,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host -F config_file -u username -p password\n\
 			[-P port] [-t timeout] [-r retries] [-e expect]\n\
 			[-n nas-id] [-N nas-ip-addr]\n", progname);
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 1f8ae42..d67e190 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -448,6 +448,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host [-e expect] [-p port] [-w warn] [-c crit] [-t timeout] [-v]\n", progname);
 }
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 6707ec5..b7028e6 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -816,7 +816,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host [-p port] [-e expect] [-C command] [-f from addr]", progname);
   printf ("[-A authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout]\n");
   printf ("[-S] [-D days] [-v] [-4|-6]\n");
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 3f0deb7..2bc6024 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -953,7 +953,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf ("%s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]\n",progname);
 	printf ("[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]\n");
 	printf ("[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]\n");
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index b9b8a2d..2509b86 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -299,7 +299,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname);
 }
 
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index c5682d7..ce1f602 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -555,7 +555,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
   printf ("%s [-av] -w <percent_free>%% -c <percent_free>%%\n",progname);
   printf ("%s [-av] -w <bytes_free> -c <bytes_free>\n", progname);
 }
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 555b8b9..178bd56 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -648,7 +648,7 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
   printf ("%s -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]\n",progname);
   printf ("[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]\n");
   printf ("[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]\n");
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 9e81d9e..3dcc662 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -368,7 +368,7 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n",progname);
   printf (" [-W connect_time] [-C connect_time] [-t timeout]\n");
 }
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index aef8e11..30c9357 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -657,6 +657,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]\n", progname);
 }
diff --git a/plugins/check_users.c b/plugins/check_users.c
index 061c2fe..8368612 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -226,6 +226,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s -w <users> -c <users>\n", progname);
 }
diff --git a/plugins/negate.c b/plugins/negate.c
index 869b9d9..96f4557 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -289,6 +289,6 @@ print_help (void)
 void
 print_usage (void)
 {
-	printf (_("Usage:"));
+	printf ("%s\n", _("Usage:"));
 	printf ("%s [-t timeout] [-Towcu STATE] [-s] <definition of wrapped plugin>\n", progname);
 }
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 5fb3aca..6bb42db 100644
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
@@ -194,6 +194,6 @@ print_help (void)
 void
 print_usage (void)
 {
-  printf (_("Usage:"));
+  printf ("%s\n", _("Usage:"));
 	printf ("%s <url> <plugin> <arg1> ... <argN>\n", progname);
 }
-- 
cgit v0.10-9-g596f

