Skip to content

Commit afc5dc8

Browse files
softwareckilgirdwood
authored andcommitted
audio: kpb: Use correct print format for size
Use unsigned format when displaying an uint32_t size. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent b68d97a commit afc5dc8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/audio/kpb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ static int kpb_copy(struct comp_dev *dev)
12321232

12331233
copy_bytes = audio_stream_get_copy_bytes(&source->stream, &sink->stream);
12341234
if (!copy_bytes) {
1235-
comp_err(dev, "kpb_copy(): nothing to copy sink->free %d source->avail %d",
1235+
comp_err(dev, "kpb_copy(): nothing to copy sink->free %u source->avail %u",
12361236
audio_stream_get_free_bytes(&sink->stream),
12371237
audio_stream_get_avail_bytes(&source->stream));
12381238
ret = PPL_STATUS_PATH_STOP;
@@ -1253,7 +1253,7 @@ static int kpb_copy(struct comp_dev *dev)
12531253
produced_bytes = copy_bytes * kpb->num_of_sel_mic / channels;
12541254
produced_bytes = ROUND_DOWN(produced_bytes, total_bytes_per_sample);
12551255
if (!copy_bytes) {
1256-
comp_err(dev, "kpb_copy(): nothing to copy sink->free %d source->avail %d",
1256+
comp_err(dev, "kpb_copy(): nothing to copy sink->free %u source->avail %u",
12571257
free,
12581258
avail);
12591259
ret = PPL_STATUS_PATH_STOP;
@@ -1310,7 +1310,7 @@ static int kpb_copy(struct comp_dev *dev)
13101310

13111311
copy_bytes = audio_stream_get_copy_bytes(&source->stream, &sink->stream);
13121312
if (!copy_bytes) {
1313-
comp_err(dev, "kpb_copy(): nothing to copy sink->free %d source->avail %d",
1313+
comp_err(dev, "kpb_copy(): nothing to copy sink->free %u source->avail %u",
13141314
audio_stream_get_free_bytes(&sink->stream),
13151315
audio_stream_get_avail_bytes(&source->stream));
13161316
/* NOTE! We should stop further pipeline copy due to
@@ -1348,7 +1348,7 @@ static int kpb_copy(struct comp_dev *dev)
13481348

13491349
comp_update_buffer_consume(source, copy_bytes);
13501350
} else {
1351-
comp_warn(dev, "kpb_copy(): buffering skipped (no data to copy, avail %d, free %zu",
1351+
comp_warn(dev, "kpb_copy(): buffering skipped (no data to copy, avail %u, free %zu",
13521352
audio_stream_get_avail_bytes(&source->stream),
13531353
kpb->hd.free);
13541354
}

0 commit comments

Comments
 (0)