Code

Hide some debug output which was printed even without "-v" (under
[nagiosplug.git] / 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;