fixed wrong error message for input device
This commit is contained in:
parent
9da0656c2f
commit
388c92414d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user