summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2012-09-04 20:29:18 +0200
committerKozlov Dmitry <xeb@mail.ru>2012-09-05 22:35:48 +0400
commitb4eec284b0814c01c575492af73dbe23ff81f5e8 (patch)
treed0bb188f1cd694f773b0cf26e00f4e2205311951 /accel-pppd/extra
parentfdeeb6f8547617a0478ffe847b76c46fa45487d0 (diff)
downloadaccel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.tar.gz
accel-ppp-b4eec284b0814c01c575492af73dbe23ff81f5e8.zip
Fix format string errors
Fix several errors and compiler warnings in format string arguments. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/connlimit.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/accel-pppd/extra/connlimit.c b/accel-pppd/extra/connlimit.c
index dcfc2de..fd7c952 100644
--- a/accel-pppd/extra/connlimit.c
+++ b/accel-pppd/extra/connlimit.c
@@ -1,3 +1,4 @@
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -38,7 +39,7 @@ int __export connlimit_check(uint64_t key)
clock_gettime(CLOCK_MONOTONIC, &ts);
pthread_mutex_lock(&lock);
- log_debug("connlimit: check entry %llu\n", key);
+ log_debug("connlimit: check entry %" PRIu64 "\n", key);
list_for_each_safe(pos, n, &items) {
it = list_entry(pos, typeof(*it), entry);
@@ -66,7 +67,7 @@ int __export connlimit_check(uint64_t key)
}
if (d > conf_burst_timeout) {
- log_debug("connlimit: remove %llu\n", it->key);
+ log_debug("connlimit: remove %" PRIu64 "\n", it->key);
list_move(&it->entry, &tmp_list);
}
}
@@ -78,7 +79,7 @@ int __export connlimit_check(uint64_t key)
it->ts = ts;
it->key = key;
- log_debug("connlimit: add entry %llu\n", key);
+ log_debug("connlimit: add entry %" PRIu64 "\n", key);
pthread_mutex_lock(&lock);
list_add(&it->entry, &items);
@@ -88,9 +89,9 @@ int __export connlimit_check(uint64_t key)
}
if (r == 0)
- log_debug("connlimit: accept %llu\n", key);
+ log_debug("connlimit: accept %" PRIu64 "\n", key);
else
- log_debug("connlimit: drop %llu\n", key);
+ log_debug("connlimit: drop %" PRIu64 "\n", key);
while (!list_empty(&tmp_list)) {