From 36ea927cff712233b875ffddcf7577499273e8ad Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 24 Feb 2016 10:43:25 +0100 Subject: lib: Fixed shoddy cast du_buff.c size_t now prints correctly as %llu --- src/lib/du_buff.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/du_buff.c') diff --git a/src/lib/du_buff.c b/src/lib/du_buff.c index 84fa22a0..5756ba27 100644 --- a/src/lib/du_buff.c +++ b/src/lib/du_buff.c @@ -190,9 +190,7 @@ int buffer_copy_data(struct buffer * head, buf_end = buffer_seek(head, pos + len); if (buf_start == NULL || buf_end == NULL) { - LOG_DBGF("Index out of bounds %d, %d", - (int) pos, - (int) (pos+len)); + LOG_DBGF("Index out of bounds %llu, %llu", pos, pos+len); return -EINVAL; } @@ -273,7 +271,7 @@ int du_buff_init(du_buff_t * dub, } if (start + len > dub->size) { - LOG_DBGF("Index out of bounds %d.", (int) start); + LOG_DBGF("Index out of bounds %llu.", start); return -EINVAL; } -- cgit v1.2.3