Code

Hide some debug output which was printed even without "-v" (under
authorHolger Weiss <hweiss@users.sourceforge.net>
Tue, 8 Jan 2008 02:06:35 +0000 (02:06 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Tue, 8 Jan 2008 02:06:35 +0000 (02:06 +0000)
certain circumstances).

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1897 f882894a-f735-0410-b71e-b25c423dba1c

plugins-root/check_icmp.c

index a5e898a13dbf9b87f312ff479fb248313cf4ade5..49b40f9d6f69b1d249d8976d3ab48119d818b84a 100644 (file)
@@ -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;