summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2016-02-24 10:43:25 +0100
committerDimitri Staessens <[email protected]>2016-02-24 10:43:25 +0100
commit36ea927cff712233b875ffddcf7577499273e8ad (patch)
tree5c8f5c9003c70b550141cf1bb12af3e42bb6e174 /src
parentb97e438d696617a2b209c543abf673e3dc4ca077 (diff)
downloadouroboros-36ea927cff712233b875ffddcf7577499273e8ad.tar.gz
ouroboros-36ea927cff712233b875ffddcf7577499273e8ad.zip
lib: Fixed shoddy cast
du_buff.c size_t now prints correctly as %llu
Diffstat (limited to 'src')
-rw-r--r--src/lib/du_buff.c6
1 files changed, 2 insertions, 4 deletions
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;
}