media-add-ons/video_producer_demo: Fix -Wformat=

Change-Id: I55272a78e13b56b2b01970be4c61ff0a5c20420f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3314
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2020-10-14 12:45:30 +00:00
committed by Jérôme Duval
parent 5d80f760f5
commit 024c0670ac
@@ -219,7 +219,8 @@ VideoProducer::HandleEvent(const media_timed_event *event,
case BTimedEventQueue::B_DATA_STATUS:
case BTimedEventQueue::B_PARAMETER:
default:
PRINTF(-1, ("HandleEvent: Unhandled event -- %lx\n", event->type));
PRINTF(-1, ("HandleEvent: Unhandled event -- %" B_PRIx32 "\n",
event->type));
break;
}
}
@@ -354,7 +355,7 @@ VideoProducer::PrepareToConnect(const media_source &source,
const media_destination &destination, media_format *format,
media_source *out_source, char *out_name)
{
PRINTF(1, ("PrepareToConnect() %ldx%ld\n", \
PRINTF(1, ("PrepareToConnect() %" B_PRIu32 "x%" B_PRIu32 "\n", \
format->u.raw_video.display.line_width, \
format->u.raw_video.display.line_count));
@@ -396,7 +397,7 @@ VideoProducer::Connect(status_t error, const media_source &source,
const media_destination &destination, const media_format &format,
char *io_name)
{
PRINTF(1, ("Connect() %ldx%ld\n", \
PRINTF(1, ("Connect() %" B_PRIu32 "x%" B_PRIu32 "\n", \
format.u.raw_video.display.line_width, \
format.u.raw_video.display.line_count));
@@ -577,7 +578,7 @@ VideoProducer::HandleStart(bigtime_t performance_time)
{
/* Start producing frames, even if the output hasn't been connected yet. */
PRINTF(1, ("HandleStart(%Ld)\n", performance_time));
PRINTF(1, ("HandleStart(%" B_PRIdBIGTIME ")\n", performance_time));
if (fRunning) {
PRINTF(-1, ("HandleStart: Node already started\n"));