[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241128032240.3288-1-liujing@cmss.chinamobile.com>
Date: Thu, 28 Nov 2024 11:22:40 +0800
From: liujing <liujing@...s.chinamobile.com>
To: tglx@...utronix.de,
mingo@...hat.com,
bp@...en8.de,
dave.hansen@...ux.intel.com,
x86@...nel.org,
hpa@...or.com,
shuah@...nel.org
Cc: linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] selftests/x86: Fix the wrong format specifier
Both 'iterations' and 'num_threads' are unsigned int types,
so the output format should be %u.
Signed-off-by: liujing <liujing@...s.chinamobile.com>
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
Powered by blists - more mailing lists