pr_info(9)
πΈ 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 intofmtπ«Ά
β¨ 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 π:
printk_cpu_sync_get_irqsave(9)printk_cpu_sync_put_irqrestore(9)pr_fmt(9)printk(9)pr_emerg(9)pr_alert(9)pr_crit(9)pr_err(9)pr_warn(9)pr_notice(9)pr_cont(9)pr_devel(9)pr_debug(9)print_hex_dump_bytes(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms