debug_sprintf_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– debug_sprintf_event(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for debug_sprintf_event(9), and it's honestly such a serve. s390 kernel debugging but make it cute. let's go πŸŽ€


✨ NAME ✨

debug_sprintf_event β€” writes debug entry with format string and varargs (longs) to active debug area (if level $<=$ actual debug level). periodt πŸ’…


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • _id β€” handle for debug log. it's giving "your entry ticket to the debug party" 🎟️
  • _level β€” debug level. the vibe check for whether this thing actually gets written, iykyk
  • _fmt β€” format string for debug entry. this is the main character of the call ngl
  • ... β€” varargs used as in sprintf. bring your whole friend group 🫢

⭐ RETURN ⭐

  • Address of written debug entry πŸ”₯
  • NULL if error 😭

πŸ’€ DESCRIPTION πŸ’€

bestie. listen. this is the one thing you cannot fumble:

floats and long long datatypes cannot be used as varargs.

no floats. no long long. not in this house. the varargs here are longs, and that's the whole story, fr fr 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./arch/s390/include/asm/debug.h, plus the whole friend group:


that's the whole page, bestie β€” you ate πŸ’…βœ¨

this iconic little number lives in ./arch/s390/include/asm and it's stamped October 2026, so like… future vibes only πŸ§šπŸ’œ bye bestie!! πŸŒΈπŸŽ€

πŸ“¦ where this page comes from