pr_err(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pr_err(9) β€” Kernel API Manual core πŸ’–

okay bestie, this is pr_err(9) from the Kernel API Manual, and she is lowkey a whole vibe. If you need to print an error-level message, this is your girl. Let's go. 🫢✨


✨ NAME ✨

pr_err β€” Print an error-level message

🌸 SYNOPSIS 🌸

pr_err (fmt , ... );

πŸŽ€ ARGUMENTS πŸŽ€

  • fmt β€” format string. That's the template, bestie. πŸ’…
  • ... β€” arguments for the format string. All the lil values that go inside it. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this macro expands to a printk with KERN_ERR loglevel. It uses pr_fmt to generate the format string. That's it, that's the whole thing, and it ate. πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/printk.h:

ngl, that's the whole squad right there. Go click through them, iykyk. πŸ‘‘

mwah, bestie πŸ’– This page lives in ./include/linux, dated October 2026, and it's filed under pr_err(9). periodt. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from