[GRASS-SVN] r52583 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 7 09:28:53 PDT 2012


Author: martinl
Date: 2012-08-07 09:28:53 -0700 (Tue, 07 Aug 2012)
New Revision: 52583

Modified:
   grass/trunk/lib/gis/error.c
Log:
libgis: print message prefix also in plain mode


Modified: grass/trunk/lib/gis/error.c
===================================================================
--- grass/trunk/lib/gis/error.c	2012-08-07 15:24:58 UTC (rev 52582)
+++ grass/trunk/lib/gis/error.c	2012-08-07 16:28:53 UTC (rev 52583)
@@ -293,7 +293,7 @@
 		while (print_word(stderr, &w, &len, lead)) ;
 	    }
 	    else {
-		fprintf(stderr, "%s\n", msg);
+                fprintf(stderr, "%s%s\n", prefix_std[type], msg);
 	    }
 
 	    if ((type != MSG) && isatty(fileno(stderr))



More information about the grass-commit mailing list