On Sun, Oct 21, 2012 at 3:56 PM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
2012/10/21 <svn_grass@osgeo.org>:
Author: neteler
Date: 2012-10-20 23:39:16 -0700 (Sat, 20 Oct 2012)
New Revision: 53518
Modified:
grass/trunk/lib/temporal/lib/default_name.c
Log:
fix debug level
[...]
- G_debug(1,
+ G_debug(0,
"Creating new default TGIS DB params with tgis_set_default_connection()");
debug level 0 seems to be illegal.
Why this?
Either use debug '1' or change G_debug() to G_message().
Then G_debug() doesn't make much sense to me.
Also
[neteler@north grass64]$ grep 'G_debug(0' */*/*.c
vector/v.perturb/myrng.c: G_debug(0,"%g",numbers[i]);
[neteler@north grass64]$ grep 'G_debug(0' */*/*/*.c
lib/vector/Vlib/dgraph.c: G_debug(0, "exact=%d orig=%d",
res, res2);
vector/lidar/v.lidar.growing/ConvexHull.c: G_debug(0, "run-time error...");
vector/lidar/v.lidar.growing/ConvexHull.c: G_debug(0, "%s", error_text);
vector/v.lrs/v.lrs.label/main.c: G_debug(0, " line = %d / %d",
line, nlines);
vector/v.lrs/v.lrs.label/main.c: G_debug(0, " %d reference
segments selected", nrseg);
[neteler@north grass70]$ grep 'G_debug(0' */*/*.c
display/d.vect/label.c: G_debug(0, "ncentroids (ogr) = %d", nlines);
lib/gis/token.c: G_debug(0, "%d=[%s]", i, tokens[i]);
raster3d/r3.in.ascii/main.c: G_debug(0,
"invalid value at col=%d row=%d depth=%d last_value=[%s]",
vector/v.lidar.growing/ConvexHull.c: G_debug(0, "run-time error...");
vector/v.lidar.growing/ConvexHull.c: G_debug(0, "%s", error_text);
vector/v.perturb/myrng.c: G_debug(0,"%g",numbers[i]);
It is not usual at least...
Markus