From: Holger Weiss Date: Tue, 8 Jan 2008 02:06:35 +0000 (+0000) Subject: Hide some debug output which was printed even without "-v" (under X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=be1ba84de55fe011aef3157d41c84e86e5ebaf15;p=nagiosplug.git Hide some debug output which was printed even without "-v" (under certain circumstances). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1897 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index a5e898a..49b40f9 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -1110,7 +1110,7 @@ add_target(char *arg) /* this is silly, but it works */ if(mode == MODE_HOSTCHECK || mode == MODE_ALL) { - printf("mode: %d\n", mode); + if(debug > 2) printf("mode: %d\n", mode); continue; } break;