From 55224307bf9b3e4231daca9ad4c4e3b6d734869b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 23 Feb 2023 18:31:23 +0100 Subject: fix: printf related warnings --- src/user/app/iostress/iostress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/app/iostress/iostress.c') diff --git a/src/user/app/iostress/iostress.c b/src/user/app/iostress/iostress.c index 3a3a23c..ac555de 100644 --- a/src/user/app/iostress/iostress.c +++ b/src/user/app/iostress/iostress.c @@ -35,9 +35,9 @@ int main(int argc, char **argv) { for (long i = 0; i < num_runs; i++) { uint64_t scaled = results[i] / 3000; total += scaled; - fprintf(stderr, "run %u: %u\n", i, scaled); + fprintf(stderr, "run %ld: %lu\n", i, scaled); } - fprintf(stderr, "%u calls, %u bytes. avg %u\n", num_calls, num_bytes, total / num_runs); + fprintf(stderr, "%lu calls, %lu bytes. avg %lu\n", num_calls, num_bytes, total / num_runs); return 0; } -- cgit v1.2.3