pr_notice(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ pr_notice β€” Kernel API Manual ✨

okay so bestie, welcome to the pr_notice(9) page πŸŽ€ this is one of those tiny-but-iconic kernel macros and honestly? she ate. let's get into it πŸ’…


🌸 NAME 🌸

pr_notice β€” the girl who prints a notice-level message πŸ’– that's it, that's the job, and she does it flawlessly, no cap.


✨ SYNOPSIS ✨

pr_notice (fmt , ... );

like, you call her, you hand her a format string, you hand her the args, she handles the rest 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fmt β€” the format string πŸ’« literally the template for whatever you wanna say
  • ... β€” the arguments for the format string πŸ“ i.e. all the little values that get slotted into fmt

🌈 DESCRIPTION 🌈

so here's the tea β˜• this is a macro, right? and it expands into a printk call rocking the KERN_NOTICE loglevel πŸ”₯ so everything you print through her shows up tagged as notice-level, periodt.

and the way that she's so smart?? she uses pr_fmt to generate the format string πŸ’… so your output gets that nice prefixed treatment, iykyk. it's giving "small macro, big main character energy" πŸ‘‘

no like genuinely, don't sleep on this one β€” she's doing a lot of work behind the scenes for something that looks like one little line 🧚

πŸ‘‘ SEE ALSO πŸ‘‘

go check out the kernel file ./include/linux/printk.h for the whole squad πŸ’– and then these icons, fr fr:

like the whole printk friend group πŸ˜­πŸ’€ every loglevel has her moment and honestly? we love a supportive family 🌸


and that's the page bestie!! 🌈 this lil beauty lives over in ./include/linux and the version we're looking at is dated October 2026 πŸŽ€ so yeah β€” go forth, print your notices, and slay πŸ’…βœ¨πŸ’œ

πŸ“¦ where this page comes from