On Sat, 2011-02-12 at 12:03 -0600, Jeremiah Benham wrote:
> ./configure --enable-debug should turn DEBUG on. g_debug should only  
> work if built with debug enabled. It's not exactly the same --enable- 
> debug passes I thing the -g to gcc and -DDEBUG. I think g_debug works  
> only when -g is passed to the compiler.
I think the purpose of the lines was then to make g_debug output only
when DEBUG is defined (and -g enabled).
Richard


> 
> Jeremiah
> 
> On Feb 12, 2011, at 11:00 AM, Richard Shann <[email protected]>  
> wrote:
> 
> > Jeremiah,
> >
> > the g_debug output has been turned on for my build params, there was a
> > handler that intended (by the look of the code) for DEBUG to control  
> > it.
> > But the handler setting has gone, and now it's on all the time.
> > How do you turn it off? The docs are mute.
> > Richard
> > this is the change:
> >
> > debug_handler (const gchar *log_domain, GLogLevelFlags log_level,
> >
> >                const gchar *message, gpointer user_data)
> >
> > {
> >
> > -#ifdef DEBUG
> >
> > -  g_print (message);
> >
> > -#endif
> >
> > +  //g_debug ("%s",message);
> >
> > }
> >
> >
> >
> >
> >
> > @@ -438,7 +436,8 @@ main (int argc, char *argv[])
> >
> > //#endif
> >
> >
> >
> >    /* set the default handler for debug messages */
> >
> > -  g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_handler, NULL);
> >
> > +  //FIXME this does not work
> >
> > +  //g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_handler, NULL);
> >
> >
> >
> >
> > _______________________________________________
> > Denemo-devel mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/denemo-devel


_______________________________________________
Denemo-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/denemo-devel

Reply via email to