]> granicus.if.org Git - postgis/commitdiff
#3662, write all notice/debug messages to stderr by default
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Sep 2017 12:23:13 +0000 (12:23 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 7 Sep 2017 12:23:13 +0000 (12:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15652 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwutil.c

index 804cf34f1db03473ebb68edb7a37bb1c3da78308..c0ed84a1df14f876223e3e700a63c8a8575d579b 100644 (file)
@@ -119,7 +119,7 @@ default_noticereporter(const char *fmt, va_list ap)
        char msg[LW_MSG_MAXLEN+1];
        vsnprintf (msg, LW_MSG_MAXLEN, fmt, ap);
        msg[LW_MSG_MAXLEN]='\0';
-       printf("%s\n", msg);
+       fprintf(stderr, "%s\n", msg);
 }
 
 static void
@@ -134,11 +134,11 @@ default_debuglogger(int level, const char *fmt, va_list ap)
                        msg[i] = ' ';
                vsnprintf(msg+i, LW_MSG_MAXLEN-i, fmt, ap);
                msg[LW_MSG_MAXLEN]='\0';
-               printf("%s\n", msg);
+               fprintf(stderr, "%s\n", msg);
        }
 }
 
-static void
+static void 
 default_errorreporter(const char *fmt, va_list ap)
 {
        char msg[LW_MSG_MAXLEN+1];