[PATCH] selftests/x86: Fix the wrong format specifier

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

 



Both 'iterations' and 'num_threads' are unsigned int types,
so the output format should be %u.

Signed-off-by: liujing <liujing@xxxxxxxxxxxxxxxxxxxx>

diff --git a/tools/testing/selftests/x86/amx.c b/tools/testing/selftests/x86/amx.c
index 1fdf35a4d7f6..b64ba55c9019 100644
--- a/tools/testing/selftests/x86/amx.c
+++ b/tools/testing/selftests/x86/amx.c
@@ -758,7 +758,7 @@ static void test_context_switch(void)
 
 	req_xtiledata_perm();
 
-	printf("[RUN]\tCheck tiledata context switches, %d iterations, %d threads.\n",
+	printf("[RUN]\tCheck tiledata context switches, %u iterations, %u threads.\n",
 	       ctxtswtest_config.iterations,
 	       ctxtswtest_config.num_threads);
 
-- 
2.27.0







[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux