Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/ringbuffer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/ringbuffer.c b/lib/ringbuffer.c
index 2116d88..b840981 100644
--- a/lib/ringbuffer.c
+++ b/lib/ringbuffer.c
@@ -556,6 +556,9 @@ qb_rb_chunk_read(struct qb_ringbuffer_s * rb, void *data_out, size_t
len,
chunk_size = QB_RB_CHUNK_SIZE_GET(rb, read_pt);
if (len < chunk_size) {
+ qb_util_log(LOG_ERR,
+ "trying to recv chunk of size %d but %d available",
+ len, chunk_size);
return -ENOBUFS;
}
--
1.7.7.6