LocalCamera: Fix Wformat warnings on FreeBSD

This commit is contained in:
Peter Keresztes Schmidt 2021-09-07 23:54:11 +02:00
parent 443b84270a
commit 0ac060fb78
1 changed files with 4 additions and 4 deletions

View File

@ -1131,17 +1131,17 @@ bool LocalCamera::GetCurrentSettings(
" Name: %s\n" " Name: %s\n"
" Type: %s\n" " Type: %s\n"
" Audioset: %08x\n" " Audioset: %08x\n"
" Standards: 0x%llx\n" " Standards: 0x%" PRIx64"\n"
, input.index , input.index
, input.name , input.name
, input.type==V4L2_INPUT_TYPE_TUNER?"Tuner":(input.type==V4L2_INPUT_TYPE_CAMERA?"Camera":"Unknown") , input.type==V4L2_INPUT_TYPE_TUNER?"Tuner":(input.type==V4L2_INPUT_TYPE_CAMERA?"Camera":"Unknown")
, input.audioset , input.audioset
, input.std ); , static_cast<uint64>(input.std));
} else { } else {
output_ptr += sprintf( output_ptr, "i%d:%s|i%dT:%s|i%dS:%llx|" output_ptr += sprintf( output_ptr, "i%d:%s|i%dT:%s|i%dS:%" PRIx64 "|"
, input.index, input.name , input.index, input.name
, input.index, input.type==V4L2_INPUT_TYPE_TUNER?"Tuner":(input.type==V4L2_INPUT_TYPE_CAMERA?"Camera":"Unknown") , input.index, input.type==V4L2_INPUT_TYPE_TUNER?"Tuner":(input.type==V4L2_INPUT_TYPE_CAMERA?"Camera":"Unknown")
, input.index, input.std); , input.index, static_cast<uint64>(input.std));
} }
if ( verbose ) { if ( verbose ) {