Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: fix format string warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 21, 2012
1 parent 8e59042 commit 8ce8bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test-get-memory.c
Expand Up @@ -26,7 +26,7 @@ TEST_IMPL(get_memory) {
uint64_t free_mem = uv_get_free_memory();
uint64_t total_mem = uv_get_total_memory();

printf("free_mem=%zu, total_mem=%zu\n", free_mem, total_mem);
printf("free_mem=%zu, total_mem=%zu\n", (size_t)free_mem, (size_t)total_mem);

ASSERT(free_mem > 0);
ASSERT(total_mem > 0);
Expand Down
10 changes: 5 additions & 5 deletions test/test-platform-output.c
Expand Up @@ -53,11 +53,11 @@ TEST_IMPL(platform_output) {
for (i = 0; i < count; i++) {
fprintf(stderr, " model: %s\n", cpus[i].model);
fprintf(stderr, " speed: %d\n", cpus[i].speed);
fprintf(stderr, " times.sys: %zu\n", cpus[i].cpu_times.sys);
fprintf(stderr, " times.user: %zu\n", cpus[i].cpu_times.user);
fprintf(stderr, " times.idle: %zu\n", cpus[i].cpu_times.idle);
fprintf(stderr, " times.irq: %zu\n", cpus[i].cpu_times.irq);
fprintf(stderr, " times.nice: %zu\n", cpus[i].cpu_times.nice);
fprintf(stderr, " times.sys: %zu\n", (size_t)cpus[i].cpu_times.sys);
fprintf(stderr, " times.user: %zu\n", (size_t)cpus[i].cpu_times.user);
fprintf(stderr, " times.idle: %zu\n", (size_t)cpus[i].cpu_times.idle);
fprintf(stderr, " times.irq: %zu\n", (size_t)cpus[i].cpu_times.irq);
fprintf(stderr, " times.nice: %zu\n", (size_t)cpus[i].cpu_times.nice);
}
uv_free_cpu_info(cpus, count);

Expand Down

0 comments on commit 8ce8bfa

Please sign in to comment.