Skip to content

Commit 4080f4b

Browse files
lrgirdwolgirdwood
authored andcommitted
buffer: logging: use correct term for memory flags.
Fix the log messages to show flags instead of type. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 3dd5671 commit 4080f4b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/audio/buffers/comp_buffer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ int buffer_set_size(struct comp_buffer *buffer, uint32_t size, uint32_t alignmen
330330
audio_stream_get_size(&buffer->stream), alignment);
331331
/* we couldn't allocate bigger chunk */
332332
if (!new_ptr && size > audio_stream_get_size(&buffer->stream)) {
333-
buf_err(buffer, "resize can't alloc %u bytes type 0x%x",
333+
buf_err(buffer, "resize can't alloc %u bytes of flags 0x%x",
334334
audio_stream_get_size(&buffer->stream), buffer->flags);
335335
return -ENOMEM;
336336
}
@@ -388,7 +388,8 @@ int buffer_set_size_range(struct comp_buffer *buffer, size_t preferred_size, siz
388388

389389
/* we couldn't allocate bigger chunk */
390390
if (!new_ptr && new_size > actual_size) {
391-
buf_err(buffer, "resize can't alloc %zu bytes type 0x%x", new_size, buffer->flags);
391+
buf_err(buffer, "resize can't alloc %zu bytes of flags 0x%x", new_size,
392+
buffer->flags);
392393
return -ENOMEM;
393394
}
394395

0 commit comments

Comments
 (0)