[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240710032813.3782-1-zhujun2@cmss.chinamobile.com>
Date: Tue, 9 Jul 2024 20:28:13 -0700
From: Zhu Jun <zhujun2@...s.chinamobile.com>
To: shuah@...nel.org
Cc: kees@...nel.org,
luto@...capital.net,
wad@...omium.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhujun2@...s.chinamobile.com
Subject: [PATCH] selftests:Fix printf format string in kselftest_harness.h
'%u' in format string requires 'unsigned int' in __wait_for_test()
but the argument type is 'signed int'.
Signed-off-by: Zhu Jun <zhujun2@...s.chinamobile.com>
---
tools/testing/selftests/kselftest_harness.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h
index b634969cbb6f..dbbbcc6c04ee 100644
--- a/tools/testing/selftests/kselftest_harness.h
+++ b/tools/testing/selftests/kselftest_harness.h
@@ -1084,7 +1084,7 @@ void __wait_for_test(struct __test_metadata *t)
}
} else {
fprintf(TH_LOG_STREAM,
- "# %s: Test ended in some other way [%u]\n",
+ "# %s: Test ended in some other way [%d]\n",
t->name,
status);
}
--
2.17.1
Powered by blists - more mailing lists