printf format fixes

This commit is contained in:
Wim Taymans 2019-06-07 17:16:02 +02:00
parent d46c239ab0
commit 497a8364c5
9 changed files with 23 additions and 22 deletions

View file

@ -1252,7 +1252,7 @@ static void rescan_session(struct impl *impl, struct session *sess)
str = node->info->name;
pw_properties_set(props, "audio-dsp.name", str);
pw_properties_setf(props, "audio-dsp.direction", "%d", sess->direction);
pw_properties_setf(props, "audio-dsp.maxbuffer", "%ld", MAX_QUANTUM_SIZE * sizeof(float));
pw_properties_setf(props, "audio-dsp.maxbuffer", "%zd", MAX_QUANTUM_SIZE * sizeof(float));
pw_log_debug(NAME" %p: making audio dsp for session %d", impl, sess->id);

View file

@ -1466,7 +1466,8 @@ int pw_stream_get_time(struct pw_stream *stream, struct pw_time *time)
else
time->queued = (int64_t)(impl->queued.incount - time->queued);
pw_log_trace("%ld %ld %ld %d/%d %ld %ld %ld %ld %ld",
pw_log_trace("%"PRIi64" %"PRIi64" %"PRIu64" %d/%d %"PRIu64" %"
PRIu64" %"PRIu64" %"PRIu64" %"PRIu64,
time->now, time->delay, time->ticks,
time->rate.num, time->rate.denom, time->queued,
impl->dequeued.outcount, impl->dequeued.incount,