abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 37a2a9d946a2ad02c9c56f89a037fe2820f195e1
parent a76088e0c0bea87b06128b7a3149b6388d109166
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu,  6 Mar 2014 18:49:49 +0100

Send info messages to stderr

Diffstat:
abduco.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/abduco.c b/abduco.c @@ -161,13 +161,13 @@ static bool is_server_packet_nonempty(ServerPacketState *pkt) { static void info(const char *str, ...) { va_list ap; va_start(ap, str); - fprintf(stdout, "\e[999H\r\n"); + fprintf(stderr, "\e[999H"); if (str) { - fprintf(stdout, "%s: %s: ", server.name, server.session_name); - vfprintf(stdout, str, ap); - fprintf(stdout, "\r\n"); + fprintf(stderr, "%s: %s: ", server.name, server.session_name); + vfprintf(stderr, str, ap); + fprintf(stderr, "\r\n"); } - fflush(stdout); + fflush(stderr); va_end(ap); }