From 388c92414d9e43cd7388e764df927d8c55ec0e02 Mon Sep 17 00:00:00 2001 From: kernelkinetic <67117582+kernelkinetic@users.noreply.github.com> Date: Sat, 12 Sep 2020 14:58:47 +0200 Subject: [PATCH] fixed wrong error message for input device --- src/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 16b13934e..2f0c9dea3 100644 --- a/src/core.c +++ b/src/core.c @@ -158,6 +158,7 @@ #include // Required for: strrchr(), strcmp(), strlen() #include // Required for: time() [Used in InitTimer()] #include // Required for: tan() [Used in BeginMode3D()] +#include #include // Required for: stat() [Used in GetFileModTime()] @@ -4602,7 +4603,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 (error: %d)", device, errno); return; } worker->fd = fd;