pr_err(9)
π 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:
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_warn(9)pr_notice(9)pr_info(9)pr_cont(9)pr_devel(9)pr_debug(9)print_hex_dump_bytes(9)
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
- 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