From: Paul Ramsey Date: Thu, 7 Sep 2017 12:23:13 +0000 (+0000) Subject: #3662, write all notice/debug messages to stderr by default X-Git-Tag: 2.4.0rc1~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cea759800e2bf358e444e5930a7b4ed62819f88c;p=postgis #3662, write all notice/debug messages to stderr by default git-svn-id: http://svn.osgeo.org/postgis/trunk@15652 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwutil.c b/liblwgeom/lwutil.c index 804cf34f1..c0ed84a1d 100644 --- a/liblwgeom/lwutil.c +++ b/liblwgeom/lwutil.c @@ -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];