aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
authorTotalCaesar659 <x24cm5b8c54q6szxw@yandex.ru>2017-04-10 23:22:52 +0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-04-10 18:02:49 -0700
commit0ca8f201dde179ed19412b734fecde2d288ff115 (patch)
treed2eef31bd2aa368f55a263a4bd332e408d7f825b /modules/benchmark.c
parent70b066128cf0f5c95090f678dbfd48a583929c82 (diff)
Fixed compile warning in benchmark.c
There was compile warning in benchmark.c: Scanning dependencies of target benchmark [ 48%] Building C object CMakeFiles/benchmark.dir/modules/benchmark.c.o /home/maxpayne/hardinfo/modules/benchmark.c: In function ‘get_benchmark_results’: /home/maxpayne/hardinfo/modules/benchmark.c:565:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] gchar *result = g_strdup_printf("[param]\n" ^ [ 50%] Building C object CMakeFiles/benchmark.dir/modules/benchmark/blowfish.c.o
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r--modules/benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index e64005d1..94997df8 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -566,7 +566,7 @@ static gchar *get_benchmark_results()
"machine=%s\n"
"machineclock=%s\n"
"machineram=%s\n"
- "nbenchmarks=%d\n",
+ "nbenchmarks=%zu\n",
machine,
machineclock,
machineram,