[channels,rdpecam] fix format string

This commit is contained in:
akallabeth 2024-10-22 15:57:56 +02:00
parent 575b926626
commit 4b850f765f
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -157,7 +157,7 @@ static int cam_v4l_open_device(const char* deviceId, int flags)
for (UINT n = 0; n < 64; n++)
{
(void)_snprintf(device, sizeof(device), "/dev/video%d", n);
(void)_snprintf(device, sizeof(device), "/dev/video%" PRIu32, n);
if ((fd = open(device, flags)) == -1)
continue;
@ -291,7 +291,7 @@ static UINT cam_v4l_enumerate(ICamHal* ihal, ICamHalEnumCallback callback, Camer
{
char device[20] = { 0 };
struct v4l2_capability cap = { 0 };
(void)_snprintf(device, sizeof(device), "/dev/video%d", n);
(void)_snprintf(device, sizeof(device), "/dev/video%" PRIu32, n);
int fd = open(device, O_RDONLY);
if (fd == -1)
continue;