From cea759800e2bf358e444e5930a7b4ed62819f88c Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 7 Sep 2017 12:23:13 +0000 Subject: [PATCH] #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 --- liblwgeom/lwutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; -- 2.50.1