Browse Source

cbuf: Fix format string warnings on 64-bit compilaton.

Georgi Chorbadzhiyski 12 years ago
parent
commit
09ef32b6df
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cbuf.c

+ 2
- 1
cbuf.c View File

@@ -11,6 +11,7 @@
11 11
 #include <netdb.h>
12 12
 #include <pthread.h>
13 13
 #include <assert.h>
14
+#include <inttypes.h>
14 15
 
15 16
 #include "libfuncs.h"
16 17
 #include "cbuf.h"
@@ -31,7 +32,7 @@ int cbuf_free_data_size(CBUF *b) {
31 32
 }
32 33
 
33 34
 void cbuf_dump(CBUF *b) {
34
-	LOGf("CBUF  [%10s]: size:%d pos:%d writepos:%d input:%llu output:%llu free_data:%d buffered:%lld\n",
35
+	LOGf("CBUF  [%10s]: size:%d pos:%d writepos:%d input:%"PRIu64" output:%"PRIu64" free_data:%d buffered:%"PRId64"\n",
35 36
 		b->name,
36 37
 		b->size,
37 38
 		b->pos,

Loading…
Cancel
Save