From 4990f57df8917219c7e55ceebce156163f0adcda Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 2 May 2012 01:46:44 +0000 Subject: [PATCH] debug messages are sent in stderr stream (Thanks to Spock) --- libnfc/log-printf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/log-printf.c b/libnfc/log-printf.c index f440f79..a157a56 100644 --- a/libnfc/log-printf.c +++ b/libnfc/log-printf.c @@ -60,8 +60,8 @@ log_put (char *category, char *priority, char *format, ...) { va_list va; va_start (va, format); - printf ("%s\t%s\t", priority, category); - vprintf (format, va); - printf ("\n"); + fprintf (stderr, "%s\t%s\t", priority, category); + vfprintf (stderr, format, va); + fprintf (stderr, "\n"); va_end (va); }