@@ -735,20 +735,24 @@ int InitPlatform(void)
735
735
736
736
#if defined(DEFAULT_GRAPHIC_DEVICE_DRM )
737
737
platform .fd = open (DEFAULT_GRAPHIC_DEVICE_DRM , O_RDWR );
738
+ if (platform .fd != -1 ) TRACELOG (LOG_INFO , "DISPLAY: Default graphic device DRM opened successfully" );
738
739
#else
739
- TRACELOG (LOG_INFO , "DISPLAY: No graphic card set, trying platform-gpu-card" );
740
+ TRACELOG (LOG_WARNING , "DISPLAY: No graphic card set, trying platform-gpu-card" );
740
741
platform .fd = open ("/dev/dri/by-path/platform-gpu-card" , O_RDWR ); // VideoCore VI (Raspberry Pi 4)
742
+ if (platform .fd != -1 ) TRACELOG (LOG_INFO , "DISPLAY: platform-gpu-card opened successfully" );
741
743
742
744
if ((platform .fd == -1 ) || (drmModeGetResources (platform .fd ) == NULL ))
743
745
{
744
- TRACELOG (LOG_INFO , "DISPLAY: Failed to open platform-gpu-card, trying card1" );
746
+ TRACELOG (LOG_WARNING , "DISPLAY: Failed to open platform-gpu-card, trying card1" );
745
747
platform .fd = open ("/dev/dri/card1" , O_RDWR ); // Other Embedded
748
+ if (platform .fd != -1 ) TRACELOG (LOG_INFO , "DISPLAY: card1 opened successfully" );
746
749
}
747
750
748
751
if ((platform .fd == -1 ) || (drmModeGetResources (platform .fd ) == NULL ))
749
752
{
750
- TRACELOG (LOG_INFO , "DISPLAY: Failed to open graphic card1, trying card0" );
753
+ TRACELOG (LOG_WARNING , "DISPLAY: Failed to open graphic card1, trying card0" );
751
754
platform .fd = open ("/dev/dri/card0" , O_RDWR ); // VideoCore IV (Raspberry Pi 1-3)
755
+ if (platform .fd != -1 ) TRACELOG (LOG_INFO , "DISPLAY: card0 opened successfully" );
752
756
}
753
757
#endif
754
758
@@ -1399,7 +1403,7 @@ static void ConfigureEvdevDevice(char *device)
1399
1403
int fd = open (device , O_RDONLY | O_NONBLOCK );
1400
1404
if (fd < 0 )
1401
1405
{
1402
- TRACELOG (LOG_WARNING , "DRM : Failed to open input device: %s" , device );
1406
+ TRACELOG (LOG_WARNING , "SYSTEM : Failed to open input device: %s" , device );
1403
1407
return ;
1404
1408
}
1405
1409
0 commit comments