debug_sprintf_exception(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… debug_sprintf_exception β€” the formatted-debug-entry icon πŸ’…

okay bestie, welcome to the debug_sprintf_exception(9) page in the Kernel API Manual ✨ this one is all about writing a debug entry with a format string and varargs (longs) to the active debug area β€” but only if level <= actual debug level β€” and then switching to the next debug area. it’s giving β€œdebug journaling with a plot twist” ngl πŸŽ€


✨ NAME ✨

debug_sprintf_exception β€” writes debug entry with format string and varargs (longs) to active debug area (if level <= actual debug level) and switches to next debug area. πŸ’–


πŸ› οΈ SYNOPSIS πŸ› οΈ

debug_sprintf_exception (_id , _level , _fmt , ... );

πŸŽ€ ARGUMENTS πŸŽ€

  • _id β€” handle for debug log 🫢
  • _level β€” debug level ⭐
  • _fmt β€” format string for debug entry πŸŽ€
  • ... β€” varargs used as in sprintf ✨

πŸ¦‹ RETURN πŸ¦‹

  • Address of written debug entry πŸ‘‘
  • NULL if error πŸ’€

🌸 DESCRIPTION 🌸

so the one big caveat, bestie: floats and long long datatypes cannot be used as varargs. periodt. πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./arch/s390/include/asm/debug.h β€” and the whole squad is: debug_level_enabled(9), debug_event(9), debug_int_event(9), debug_long_event(9), debug_text_event(9), debug_sprintf_event(9), debug_exception(9), debug_int_exception(9), debug_long_exception(9), debug_text_exception(9), and DEFINE_STATIC_DEBUG_INFO(9) 🌈


mwah πŸ’‹ signed off from ./arch/s390/include/asm, October 2026, all about debug_sprintf_exception(9) πŸ’–

πŸ“¦ where this page comes from