[GRASS-dev] do not get debug messages in 63-cvs

Martin Landa landa.martin at gmail.com
Sun Nov 5 05:22:53 EST 2006


Hi Florian,

I am also not sure, is this patch enough to fix it?

Best, Martin

2006/11/5, Florian Kindl <Florian.Kindl at uibk.ac.at>:
> On Sun, 5 Nov 2006, Martin Landa wrote:
>
> > Hi all,
> >
> > it seems that the problem is calling G_getl2() function [grass63] in
> > lib/gis/env.c
> >
> > [snip]
> >
> > G_getl2() call G_debug() before reading DEBUG value, in the result
> > static variable grass_debug_level in lib/gis/debug.c is set to 0.
> >
>
> Thank you, Martin!
>
> I don't know how to repair G_getl2() properly, but commenting out the
> G_debug() statement in lib/gis/getl.c (veeeery dirty, I know...) fixes it
> for the moment...
>
> thanks,
> -Flo.
>
>
> --
> Florian Kindl
> Institute of Geography
> University of Innsbruck
>
>
>


-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
-------------- next part --------------
Index: lib/gis/getl.c
===================================================================
RCS file: /home/grass/grassrepository/grass6/lib/gis/getl.c,v
retrieving revision 2.4
diff -u -r2.4 getl.c
--- lib/gis/getl.c	9 Feb 2006 03:08:56 -0000	2.4
+++ lib/gis/getl.c	5 Nov 2006 10:18:48 -0000
@@ -82,7 +82,8 @@
     }	
     buf[i] = '\0';
 
-    G_debug ( 4, "G_getl2: ->%s<-", buf );
+    if (G__getenv ("DEBUG"))
+	G_debug ( 4, "G_getl2: ->%s<-", buf );
 
     return ret;
 }


More information about the grass-dev mailing list