pr_devel(9)
π pr_devel(9) π
bestie, welcome to the Kernel API Manual entry for pr_devel β it's lowkey iconic and very "do I exist or not?" energy β¨
π NAME π
pr_devel β print a debug-level message conditionally π
β¨ SYNOPSIS β¨
okay so here's the call vibe check:
pr_devel (fmt , ... );
π¦ ARGUMENTS π¦
what you're passing in, bestie π«Ά
fmtβ format string...β arguments for the format string
πΈ DESCRIPTION πΈ
okay so here's the actual tea β: pr_devel is a macro. If DEBUG is defined, it expands to a printk with the KERN_DEBUG loglevel. Otherwise it does nothing β like, literally nothing, no cap π
It uses pr_fmt to generate the format string, so that's the formatting pipeline you're working with π
π SEE ALSO π
Kernel file ./include/linux/printk.h and the rest of the squad:
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_info(9)pr_cont(9)pr_debug(9)print_hex_dump_bytes(9)
that's the whole page, bestie π source spot: ./include/linux, dated October 2026, and the name on the door is pr_devel(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