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

Martin Landa landa.martin at gmail.com
Sun Nov 5 04:23:31 EST 2006


Hi all,

it seems that the problem is calling G_getl2() function [grass63] in
lib/gis/env.c

diff grass62-> grass63

--- env.c       2006-11-05 10:18:28.000000000 +0100
+++ /usr/src/gis/grass6-6.2/lib/gis/env.c       2006-02-09
04:08:56.000000000 +0100
@@ -111,7 +111,7 @@

     if ((fd = open_env ("r", loc)))
     {
-       while (G_getl2 (buf, sizeof buf, fd))
+       while (G_getl (buf, sizeof buf, fd))
        {
            for (name = value = buf; *value; value++)
                if (*value == ':')
[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.

Best, Martin

2006/11/5, Hamish <hamish_nospam at yahoo.com>:
> Florian Kindl wrote:
> >
> > For some time the debug messages in grass63-cvs are no longer working
> > for me.
> >
> > `g.gisenv set=DEBUG=5` seems to do its job as `g.gisenv DEBUG` returns
> > "5" but no debug messages are printed when I call a module.
> >
> > I tried a `make distclean`, even a complete new install of the whole
> > source tree, but the problem is still there.
> > `./configure` and `make` run without errors...
> >
> > It works fine in grass6.2.0-RC3 on the same machine, configured and
> > compiled the same way.
> >
> > Any ideas where the problem lies  or what I did wrong?
>
>
> I have the same trouble. I don't know why it happens. It works fine for
> me in 6.2.
>
>
>
>
> Hamish
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>


-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-dev mailing list