Patchwork fs-tests: perf: fix compilation warning

login
register
mail settings
Submitter Artem Bityutskiy
Date March 24, 2011, 11:33 a.m.
Message ID <1300966426-5760-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/88171/
State Accepted
Commit 73d42dd57f6a6f246101928d7c7403058a6627a4
Headers show

Comments

Artem Bityutskiy - March 24, 2011, 11:33 a.m.
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

Fix the following compilation warning:
perf.c: In function ‘perf’:
perf.c:144: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘int64_t’

by adding a (long long int) cast.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 tests/fs-tests/simple/perf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/tests/fs-tests/simple/perf.c b/tests/fs-tests/simple/perf.c
index 43d708d..b98b98b 100644
--- a/tests/fs-tests/simple/perf.c
+++ b/tests/fs-tests/simple/perf.c
@@ -141,7 +141,8 @@  void perf(void)
 	/* Display timings */
 	printf("File system read and write speed\n");
 	printf("================================\n");
-	printf("Specfied file size: %lld\n", tests_size_parameter);
+	printf("Specfied file size: %lld\n",
+	       (unsigned long long)tests_size_parameter);
 	printf("Actual file size: %zu\n", actual_size);
 	printf("Write time (us): %lld\n", write_time);
 	printf("Unmount time (us): %lld\n", unmount_time);