TH_LOG(9)
π TH_LOG π
okay so welcome to the TH_LOG page, from the Kernel API Manual, and bestie it is short but it's also kind of a whole vibe π«Ά
β¨ NAME β¨
TH_LOG β and that's literally it, the description field is blank in the original, so we are not inventing one, no cap π
πΈ SYNOPSIS πΈ
TH_LOG (fmt , ... );
π¦ ARGUMENTS π¦
fmtβ the format string, the main character of this whole operation β¨...β optional arguments, aka the plus-ones π
π DESCRIPTION π
TH_LOG(format, ...)
So this is the optional debug logging function that's available for use in tests π Like, it's a logging helper, it's optional, and it lives to serve your tests β that's the entire lore.
Logging may be enabled or disabled by defining TH_LOG_ENABLED, iykyk. For example:
#define TH_LOG_ENABLED 1
And if you don't provide any definition at all? Then logging is enabled by default β no setup, no stress, it just works πΈ
π SEE ALSO π
the whole friend group, in the exact order the original hands them to you π₯
Kernel file ./tools/testing/selftests/kselftest_harness.h example(9)SKIP(9)TEST(9)TEST_SIGNAL(9)FIXTURE_DATA(9)FIXTURE(9)FIXTURE_SETUP(9)FIXTURE_TEARDOWN(9)FIXTURE_TEARDOWN_PARENT(9)FIXTURE_VARIANT(9)FIXTURE_VARIANT_ADD(9)TEST_F(9)TEST_HARNESS_MAIN(9)operators(9)ASSERT_EQ(9)ASSERT_NE(9)ASSERT_LT(9)ASSERT_LE(9)ASSERT_GT(9)ASSERT_GE(9)ASSERT_NULL(9)ASSERT_TRUE(9)ASSERT_FALSE(9)ASSERT_STREQ(9)ASSERT_STRNE(9)EXPECT_EQ(9)EXPECT_NE(9)EXPECT_LT(9)EXPECT_LE(9)EXPECT_GT(9)EXPECT_GE(9)EXPECT_NULL(9)EXPECT_TRUE(9)EXPECT_FALSE(9)EXPECT_STREQ(9)EXPECT_STRNE(9)XFAIL_ADD(9)
and that's the page, bestie!! this one comes to you from ./tools/testing/selftests, dated October 2026, and it's giving reference-page-that-ate. go read your tests, ily, bye ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms