diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-07 09:50:36 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-07 09:50:36 +0200 |
commit | 4b5b92bfee9cfe8650bf1661114c37796b0131c0 (patch) | |
tree | 5c2e0fbce3fb88a8f4ee14427a6b3fe3be49250c /src | |
parent | 4a02deb08881b620a88f6ffb8398423becd83d0c (diff) | |
download | strongswan-4b5b92bfee9cfe8650bf1661114c37796b0131c0.tar.bz2 strongswan-4b5b92bfee9cfe8650bf1661114c37796b0131c0.tar.xz |
%llu correctly prints u_int64_t
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 4 | ||||
-rw-r--r-- | src/charon/sa/tasks/child_delete.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c index 7aa80dcd2..6f421bd30 100644 --- a/src/charon/plugins/stroke/stroke_list.c +++ b/src/charon/plugins/stroke/stroke_list.c @@ -207,14 +207,14 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all) } child_sa->get_usestats(child_sa, TRUE, &use_in, &bytes_in); - fprintf(out, ", %u bytes_i", (u_int)bytes_in); + fprintf(out, ", %llu bytes_i", bytes_in); if (use_in) { fprintf(out, " (%ds ago)", now - use_in); } child_sa->get_usestats(child_sa, FALSE, &use_out, &bytes_out); - fprintf(out, ", %u bytes_o", (u_int)bytes_out); + fprintf(out, ", %llu bytes_o", bytes_out); if (use_out) { fprintf(out, " (%ds ago)", now - use_out); diff --git a/src/charon/sa/tasks/child_delete.c b/src/charon/sa/tasks/child_delete.c index 4de7c039f..7abb07a84 100644 --- a/src/charon/sa/tasks/child_delete.c +++ b/src/charon/sa/tasks/child_delete.c @@ -249,10 +249,10 @@ static void log_children(private_child_delete_t *this) child_sa->get_usestats(child_sa, FALSE, NULL, &bytes_out); DBG0(DBG_IKE, "closing CHILD_SA %s{%d} " - "with SPIs %.8x_i (%u bytes) %.8x_o (%u bytes) and TS %#R=== %#R", + "with SPIs %.8x_i (%llu bytes) %.8x_o (%llu bytes) and TS %#R=== %#R", child_sa->get_name(child_sa), child_sa->get_reqid(child_sa), - ntohl(child_sa->get_spi(child_sa, TRUE)), (u_int)bytes_in, - ntohl(child_sa->get_spi(child_sa, FALSE)), (u_int)bytes_out, + ntohl(child_sa->get_spi(child_sa, TRUE)), bytes_in, + ntohl(child_sa->get_spi(child_sa, FALSE)), bytes_out, child_sa->get_traffic_selectors(child_sa, TRUE), child_sa->get_traffic_selectors(child_sa, FALSE)); } |