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 /src/charon/plugins/stroke/stroke_list.c | |
parent | 99dd42918e53426174795e2950c7b5fffe42e07b (diff) | |
download | strongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.bz2 strongswan-4a02deb08881b620a88f6ffb8398423becd83d0c.tar.xz |
printing u_int64_t caused segfault on 32-bit platforms
Diffstat (limited to 'src/charon/plugins/stroke/stroke_list.c')
-rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 4 |
1 files changed, 2 insertions, 2 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); |