Commit 931f558e authored by Pekka Pessi's avatar Pekka Pessi
Browse files

torture_sresolv.c: fixed printf() formatting types

Passed a size_t to %u.

darcs-hash:20071011153013-88462-475cf630a9aafe422cae737db39224d0c90b8656.gz
parent 6b1c8919
...@@ -286,7 +286,7 @@ int test_cache(void) ...@@ -286,7 +286,7 @@ int test_cache(void)
if (t1.tv_nsec < t0.tv_nsec) if (t1.tv_nsec < t0.tv_nsec)
t2.tv_sec--, t2.tv_nsec += 1000000000; t2.tv_sec--, t2.tv_nsec += 1000000000;
printf("sres_cache: stored %u entries: %lu.%09lu sec\n", printf("sres_cache: stored %u entries: %lu.%09lu sec\n",
N, (long unsigned)t2.tv_sec, t2.tv_nsec); (unsigned)N, (long unsigned)t2.tv_sec, t2.tv_nsec);
} }
for (i = 0, N; i < N; i++) for (i = 0, N; i < N; i++)
...@@ -303,7 +303,7 @@ int test_cache(void) ...@@ -303,7 +303,7 @@ int test_cache(void)
if (t1.tv_nsec < t0.tv_nsec) if (t1.tv_nsec < t0.tv_nsec)
t2.tv_sec--, t2.tv_nsec += 1000000000; t2.tv_sec--, t2.tv_nsec += 1000000000;
printf("sres_cache: cleaned %u entries: %lu.%09lu sec\n", printf("sres_cache: cleaned %u entries: %lu.%09lu sec\n",
N, (long unsigned)t2.tv_sec, t2.tv_nsec); (unsigned)N, (long unsigned)t2.tv_sec, t2.tv_nsec);
} }
for (i = 0, N; i < N; i++) for (i = 0, N; i < N; i++)
...@@ -325,7 +325,7 @@ int test_cache(void) ...@@ -325,7 +325,7 @@ int test_cache(void)
if (t1.tv_nsec < t0.tv_nsec) if (t1.tv_nsec < t0.tv_nsec)
t2.tv_sec--, t2.tv_nsec += 1000000000; t2.tv_sec--, t2.tv_nsec += 1000000000;
printf("sres_cache: stored %u entries: %lu.%09lu sec\n", printf("sres_cache: stored %u entries: %lu.%09lu sec\n",
N, (long unsigned)t2.tv_sec, t2.tv_nsec); (unsigned)N, (long unsigned)t2.tv_sec, t2.tv_nsec);
} }
for (i = 0, N; i < N; i++) for (i = 0, N; i < N; i++)
...@@ -343,7 +343,7 @@ int test_cache(void) ...@@ -343,7 +343,7 @@ int test_cache(void)
if (t1.tv_nsec < t0.tv_nsec) if (t1.tv_nsec < t0.tv_nsec)
t2.tv_sec--, t2.tv_nsec += 1000000000; t2.tv_sec--, t2.tv_nsec += 1000000000;
printf("sres_cache: cleaned %u entries: %lu.%09lu sec\n", printf("sres_cache: cleaned %u entries: %lu.%09lu sec\n",
N, (long unsigned)t2.tv_sec, t2.tv_nsec); (unsigned)N, (long unsigned)t2.tv_sec, t2.tv_nsec);
} }
for (i = 0, N; i < N; i++) { for (i = 0, N; i < N; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment