From 7a865f25ac2674a639b69f8202c053fea82ccc10 Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Wed, 14 Jul 2021 20:11:10 +0100 Subject: [PATCH] Switched all output to stderr in uxncli --- src/uxncli.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uxncli.c b/src/uxncli.c index a088d51..60908d6 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -22,7 +22,7 @@ static Device *devconsole; static int error(char *msg, const char *err) { - printf("Error %s: %s\n", msg, err); + fprintf(stderr, "Error %s: %s\n", msg, err); return 0; } @@ -30,13 +30,13 @@ static void printstack(Stack *s) { Uint8 x, y; - printf("\n\n"); + fprintf(stderr, "\n\n"); for(y = 0; y < 0x08; ++y) { for(x = 0; x < 0x08; ++x) { Uint8 p = y * 0x08 + x; - printf(p == s->ptr ? "[%02x]" : " %02x ", s->dat[p]); + fprintf(stderr, p == s->ptr ? "[%02x]" : " %02x ", s->dat[p]); } - printf("\n"); + fprintf(stderr, "\n"); } }