pr_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 pr_info(9) β€” the Kernel API Manual bestie edition 🌸

okay so you're reading the Kernel API Manual page for pr_info, and honestly? iconic choice. This is the one that prints your little info-level messages into the kernel log, and it's lowkey the most-used macro in the whole printk family. Let's get into it πŸ’…

✨ NAME ✨

pr_info β€” print an info-level message πŸŽ€

✨ SYNOPSIS ✨

pr_info (fmt , ... );

✨ ARGUMENTS ✨

  • fmt β€” the format string, bestie. this is the template your message gets built from ✨
  • ... β€” the arguments for the format string, i.e. all the stuff that gets slotted into fmt 🫢

✨ DESCRIPTION ✨

So here's the tea πŸ“: this macro expands to a printk with KERN_INFO loglevel. That's it, that's the whole vibe. It uses pr_fmt to generate the format string, so your output gets that little prefix treatment. no cap, it's that simple and that's why we love her πŸ’–

✨ SEE ALSO ✨

Kernel file ./include/linux/printk.h plus the whole printk friend group, go say hi πŸ‘‘:


and that's the page, bestie 🌈 fr fr go log something nice. this one came out of ./include/linux and it's dated October 2026 β€” mwah, slay, periodt πŸ’œπŸ¦‹

πŸ“¦ where this page comes from