From 36f9fd614e36a7bd17b65ca0c842919c12897fb1 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 5 Nov 2009 12:36:28 +0000 Subject: [PATCH] Write all messages to stderr. Messages written to stdout are undesirable when the output of an application needs to be passed through a pipe. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 952bd8a..5c14e73 100644 --- a/src/utils.c +++ b/src/utils.c @@ -67,7 +67,7 @@ int message (const char* fmt, ...) } va_start (ap, fmt); - int rc = vfprintf (stdout, fmt, ap); + int rc = vfprintf (stderr, fmt, ap); va_end (ap); return rc;