[GRASS-SVN] r40602 - grass/trunk/lib/segment

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 21 10:04:20 EST 2010


Author: mmetz
Date: 2010-01-21 10:04:20 -0500 (Thu, 21 Jan 2010)
New Revision: 40602

Modified:
   grass/trunk/lib/segment/address.c
   grass/trunk/lib/segment/setup.c
Log:
change warning to debug message, format code

Modified: grass/trunk/lib/segment/address.c
===================================================================
--- grass/trunk/lib/segment/address.c	2010-01-21 15:03:43 UTC (rev 40601)
+++ grass/trunk/lib/segment/address.c	2010-01-21 15:04:20 UTC (rev 40602)
@@ -22,9 +22,8 @@
 	int seg_c = col >> SEG->scolbits;
 
 	*n = seg_r * SEG->spr + seg_c;
-	*index =
-	    ((row - (seg_r << SEG->srowbits)) << SEG->scolbits) + col -
-	    (seg_c << SEG->scolbits);
+	*index = ((row - (seg_r << SEG->srowbits)) << SEG->scolbits) +
+	         col - (seg_c << SEG->scolbits);
 
 	/*
 	*n = (row >> SEG->srowbits) * SEG->spr + (col >> SEG->scolbits);

Modified: grass/trunk/lib/segment/setup.c
===================================================================
--- grass/trunk/lib/segment/setup.c	2010-01-21 15:03:43 UTC (rev 40601)
+++ grass/trunk/lib/segment/setup.c	2010-01-21 15:04:20 UTC (rev 40602)
@@ -91,7 +91,7 @@
 
     /* adjust number of open segments if larger than number of total segments */
     if (SEG->nseg > SEG->spr * ((SEG->nrows + SEG->srows - 1) / SEG->srows)) {
-	G_warning("segment: reducing number of open segments from %d to %d",
+	G_debug(1, "segment: reducing number of open segments from %d to %d",
 		  SEG->nseg,
 		  SEG->spr * ((SEG->nrows + SEG->srows - 1) / SEG->srows));
 	SEG->nseg = SEG->spr * ((SEG->nrows + SEG->srows - 1) / SEG->srows);



More information about the grass-commit mailing list