]> sjero.net Git - wget/blobdiff - src/wget.h
[svn] A bunch of new features:
[wget] / src / wget.h
index 196f913c59c2669ce2da29f43aa2e3e98660655e..718ee0b169bdad70fc73f863a5f6dcdd18d112da 100644 (file)
@@ -71,7 +71,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Print X if debugging is enabled; a no-op otherwise.  */
 #ifdef DEBUG
-# define DEBUGP(x) do { debug_logprintf x; } while (0)
+# define DEBUGP(x) do { if (opt.debug) { debug_logprintf x; } } while (0)
 #else  /* not DEBUG */
 # define DEBUGP(x) DO_NOTHING
 #endif /* not DEBUG */