From 6038c8fdd51204392b9f0bc087b9a3db6da9b663 Mon Sep 17 00:00:00 2001 From: kernelkinetic <67117582+kernelkinetic@users.noreply.github.com> Date: Fri, 18 Sep 2020 08:52:52 +0200 Subject: [PATCH] fixed wrong error message for input device on RPI (#1379) * fixed wrong error message for input device * error message without errnofor input device on RPI to prevent from including additional header Co-authored-by: kkl --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 2b69fc82..72223398 100644 --- a/src/core.c +++ b/src/core.c @@ -4661,7 +4661,7 @@ static void EventThreadSpawn(char *device) fd = open(device, O_RDONLY | O_NONBLOCK); if (fd < 0) { - TRACELOG(LOG_WARNING, "RPI: Failed to open input device (error: %d)", device, worker->fd); + TRACELOG(LOG_WARNING, "RPI: Failed to open input device %s", device); return; } worker->fd = fd;