diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-07 08:47:07 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-07 08:47:29 +0200 |
commit | 4a02deb08881b620a88f6ffb8398423becd83d0c (patch) | |
tree | 47f91d488d48650717b94fe1c3c1f58caf18acde | |
parent | 99dd42918e53426174795e2950c7b5fffe42e07b (diff) | |
download | strongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.bz2 strongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.xz |
printing u_int64_t caused segfault on 32-bit platforms
-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 795e1ed7f..7aa80dcd2 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, ", %lu bytes_i", bytes_in); + fprintf(out, ", %u bytes_i", (u_int)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, ", %lu bytes_o", bytes_out); + fprintf(out, ", %u bytes_o", (u_int)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 af3f276a1..4de7c039f 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 (%lu bytes) %.8x_o (%lu bytes) and TS %#R=== %#R", + "with SPIs %.8x_i (%u bytes) %.8x_o (%u 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)), bytes_in, - ntohl(child_sa->get_spi(child_sa, FALSE)), bytes_out, + ntohl(child_sa->get_spi(child_sa, TRUE)), (u_int)bytes_in, + ntohl(child_sa->get_spi(child_sa, FALSE)), (u_int)bytes_out, child_sa->get_traffic_selectors(child_sa, TRUE), child_sa->get_traffic_selectors(child_sa, FALSE)); } |