%llu correctly prints u_int64_t

This commit is contained in:
Andreas Steffen
2009-08-07 09:50:36 +02:00
parent 4a02deb088
commit 4b5b92bfee
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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);