fixed wrong error message for input device

This commit is contained in:
kernelkinetic 2020-09-12 14:58:47 +02:00
parent 9da0656c2f
commit 388c92414d

View File

@ -158,6 +158,7 @@
#include <string.h> // Required for: strrchr(), strcmp(), strlen()
#include <time.h> // Required for: time() [Used in InitTimer()]
#include <math.h> // Required for: tan() [Used in BeginMode3D()]
#include <errno.h>
#include <sys/stat.h> // 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;