fade: Log to stderr.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Sep 2013 23:23:14 +0000 (23:23 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 Dec 2013 21:21:58 +0000 (21:21 +0000)
Uunlike all other commands of the paraslash suite, the log function of
para_fade writes to stdout rather than stderr. Make it log to stderr
for the sake of consistency.

fade.c

diff --git a/fade.c b/fade.c
index a8424d6..387e257 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -37,7 +37,7 @@ static __printf_2_3 void date_log(int ll, const char *fmt, ...)
                return;
        time(&t1);
        tm = localtime(&t1);
-       printf("%d:%02d:%02d ", tm->tm_hour, tm->tm_min, tm->tm_sec);
+       fprintf(stderr, "%d:%02d:%02d ", tm->tm_hour, tm->tm_min, tm->tm_sec);
        va_start(argp, fmt);
        vprintf(fmt, argp);
        va_end(argp);