fixed 64 bit printf() issue
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 24 Oct 2010 18:30:19 +0000 (20:30 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 24 Oct 2010 18:30:19 +0000 (20:30 +0200)
src/libcharon/plugins/stroke/stroke_list.c

index de822f4..86deea4 100644 (file)
@@ -1205,7 +1205,7 @@ static void pool_leases(private_stroke_list_t *this, FILE *out, char *pool,
        bool on;
        int found = 0;
 
-       fprintf(out, "Leases in pool '%s', usage: %lu/%lu, %lu online\n",
+       fprintf(out, "Leases in pool '%s', usage: %u/%u, %u online\n",
                        pool, online + offline, size, online);
        enumerator = this->attribute->create_lease_enumerator(this->attribute, pool);
        while (enumerator && enumerator->enumerate(enumerator, &id, &lease, &on))