uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 7a865f25ac2674a639b69f8202c053fea82ccc10
parent d2627a7e461aff4b0be56b6c609624aec97f71d6
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Wed, 14 Jul 2021 20:11:10 +0100

Switched all output to stderr in uxncli

Diffstat:
Msrc/uxncli.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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"); } }