From fee9c0ef847b8b7471d7e7af3cbf17fcb9fa4ee8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 14 Jul 2019 18:26:04 +0200 Subject: [PATCH] silent uart_close error message as it can be called from uart_open failing modes, e.g. when waiting for port to appear --- uart/uart_posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uart/uart_posix.c b/uart/uart_posix.c index 22cc75207..ea535fd73 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -238,7 +238,8 @@ void uart_close(const serial_port sp) { // Does the system allows us to place a lock on this file descriptor int err = fcntl(spu->fd, F_SETLK, &fl); if (err == -1) { - printf("[!] UART error while closing port\n"); + //silent error message as it can be called from uart_open failing modes, e.g. when waiting for port to appear + //printf("[!] UART error while closing port\n"); } close(spu->fd); free(sp);