From 77ff1e5269fd81b57ad5e210a8b28262be9ba221 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Tue, 7 Jun 2022 10:01:26 +0200 Subject: [PATCH] Remove debug --- src/tty.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tty.c b/src/tty.c index b3ec1ab..aea1d58 100644 --- a/src/tty.c +++ b/src/tty.c @@ -583,15 +583,12 @@ void tty_wait_for_device(void) if (FD_ISSET(STDIN_FILENO, &rdfs)) { /* Input from stdin ready */ - printf(".\n"); - fflush(stdout); /* Read one character */ status = read(STDIN_FILENO, &input_char, 1); if (status <= 0) { - error_printf("Could not read from stdin 0"); - error_printf("Could not read from stdin 0 (%s)", strerror(errno)); + error_printf("Could not read from stdin"); exit(EXIT_FAILURE); } @@ -823,7 +820,7 @@ int tty_connect(void) } else { /* Error reading - device is likely unplugged */ - error_printf_silent("Could not read from tty device 1"); + error_printf_silent("Could not read from tty device"); goto error_read; } } @@ -835,7 +832,7 @@ int tty_connect(void) status = read(STDIN_FILENO, &input_char, 1); if (status <= 0) { - error_printf_silent("Could not read from stdin 2"); + error_printf_silent("Could not read from stdin"); goto error_read; }