diff mbox series

selftests/x86: Fix the wrong format specifier

Message ID 20241128032240.3288-1-liujing@cmss.chinamobile.com
State New
Headers show
Series selftests/x86: Fix the wrong format specifier | expand

Commit Message

liujing Nov. 28, 2024, 3:22 a.m. UTC
Both 'iterations' and 'num_threads' are unsigned int types,
so the output format should be %u.

Signed-off-by: liujing <liujing@cmss.chinamobile.com>
diff mbox series

Patch

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);