Skip to contentSkip to conversation

fs-tests: perf: fix compilation warning

PATCH New Artem Bityutskiy 1 participant 1 message Mar 24, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs-tests: perf: fix compilation warning

From: Artem Bityutskiy <[email protected]>

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.

---
 tests/fs-tests/simple/perf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
tests/fs-tests/simple/perf.c +2 -1
index 43d708d..b98b98b 100644
@@ -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);
Signature · 1 line
1.7.2.3