[PATCH] ao_wmm.c has debug output enabled by default
ao_wmm.c has debug output enabled by default static int debug_flag = 1;
4 suggestions:
- Have it off by default
- Have it settable from the command line #ifndef AO_WMM_DEBUG #define AO_WMM_DEBUG 0 #endif static int debug_flat = AO_WMM_DEBUG;
- Add it to the configure if test "x$has_wmm" = "xyes" && test "x$enable_wmm_debug"; then CFLAGS="$CFLAGS -DAO_WMM_DEBUGS=1" fi (also add comment)
- Add it as an option to ao_wmm_option static char * ao_wmm_options[] = {"debug, "dev", "id"); and ao_wmm_set_option if(!strcmp("debug")) { if(!strcmp("yes")) { debug_flag = 1; res = 1; } else if(!strcmp("no")) { debug_flag = 0; res = 1; } else { res = 0; } goto finish; }