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
 #include <netdb.h>
11
 #include <netdb.h>
12
 #include <pthread.h>
12
 #include <pthread.h>
13
 #include <assert.h>
13
 #include <assert.h>
14
+#include <inttypes.h>
14
 
15
 
15
 #include "libfuncs.h"
16
 #include "libfuncs.h"
16
 #include "cbuf.h"
17
 #include "cbuf.h"
31
 }
32
 }
32
 
33
 
33
 void cbuf_dump(CBUF *b) {
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
 		b->name,
36
 		b->name,
36
 		b->size,
37
 		b->size,
37
 		b->pos,
38
 		b->pos,

Loading…
Cancel
Save