From 09652061bb93ee1eb88656322146a0a95b058062 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 19 Dec 2023 17:17:41 +0100 Subject: [PATCH] Lower RFsim EAGAIN error message to debug message We set the RFsim TCP socket to non-blocking. Thus, it may happen that we cannot write() to the socket when the kernel cannot handle the request, in which case we wait some time before trying again. This is the correct/expected behavior. Since this is *normal*, an error message is not justified; we did not even print a message in this case before commit 21790f9c4fc introduced it. --- radio/rfsimulator/simulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/rfsimulator/simulator.c b/radio/rfsimulator/simulator.c index 1111e48e6b..5dea88edd5 100644 --- a/radio/rfsimulator/simulator.c +++ b/radio/rfsimulator/simulator.c @@ -314,7 +314,7 @@ static void fullwrite(int fd, void *_buf, ssize_t count, rfsimulator_state_t *t) continue; if (errno == EAGAIN) { - LOG_E(HW, "write() failed, errno(%d)\n", errno); + LOG_D(HW, "write() failed, errno(%d)\n", errno); usleep(250); continue; } else