cyclictest: fix warning about printf format for u64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes

	src/cyclictest/cyclictest.c: In function âprint_histâ:
	src/cyclictest/cyclictest.c:1168: warning: format â%09lluâ expects type âlong long unsigned intâ, but argument 2 has type âuint64_tâ

on amd64.

Signed-off-by: Uwe Kleine-KÃnig <u.kleine-koenig@xxxxxxxxxxxxxx>
---
 src/cyclictest/cyclictest.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1165,7 +1165,7 @@
 	}
 	printf("# Total:");
 	for (j = 0; j < nthreads; j++)
-		printf(" %09llu", log_entries[j]);
+		printf(" %09llu", (unsigned long long)log_entries[j]);
 	printf("\n");
 	printf("# Max Latencys:");
 	for (j = 0; j < nthreads; j++)
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux