Commit fed414c4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: fix format warnings

GCC and Linux do not agree on the underlying type -long or long long-
for fixed size 64-bits integer on 64-bits architectures.
parent 3ae3e5f8
......@@ -683,11 +683,12 @@ static vlc_v4l2_ctrl_t *ControlAddIntMenu (vlc_object_t *obj, int fd,
if (v4l2_ioctl (fd, VIDIOC_QUERYMENU, &menu) < 0)
continue;
msg_Dbg (obj, " choice %"PRIu32") %"PRId64, menu.index, menu.value);
msg_Dbg (obj, " choice %"PRIu32") %"PRId64, menu.index,
(uint64_t)menu.value);
vlc_value_t text;
val.i_int = menu.index;
sprintf (name, "%"PRId64, menu.value);
sprintf (name, "%"PRId64, (int64_t)menu.value);
text.psz_string = name;
var_Change (obj, c->name, VLC_VAR_ADDCHOICE, &val, &text);
}
......
......@@ -61,11 +61,11 @@ static int SetupStandard (vlc_object_t *obj, int fd,
}
if (v4l2_ioctl (fd, VIDIOC_S_STD, std) < 0)
{
msg_Err (obj, "cannot set video standard 0x%"PRIx64": %s", *std,
vlc_strerror_c(errno));
msg_Err (obj, "cannot set video standard 0x%"PRIx64": %s",
(uint64_t)*std, vlc_strerror_c(errno));
return -1;
}
msg_Dbg (obj, "video standard set to 0x%"PRIx64":", *std);
msg_Dbg (obj, "video standard set to 0x%"PRIx64":", (uint64_t)*std);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment