Switched all output to stderr in uxncli

This commit is contained in:
Andrew Alderwick 2021-07-14 20:11:10 +01:00
parent d2627a7e46
commit 7a865f25ac
1 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ static Device *devconsole;
static int static int
error(char *msg, const char *err) error(char *msg, const char *err)
{ {
printf("Error %s: %s\n", msg, err); fprintf(stderr, "Error %s: %s\n", msg, err);
return 0; return 0;
} }
@ -30,13 +30,13 @@ static void
printstack(Stack *s) printstack(Stack *s)
{ {
Uint8 x, y; Uint8 x, y;
printf("\n\n"); fprintf(stderr, "\n\n");
for(y = 0; y < 0x08; ++y) { for(y = 0; y < 0x08; ++y) {
for(x = 0; x < 0x08; ++x) { for(x = 0; x < 0x08; ++x) {
Uint8 p = y * 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");
} }
} }