DRM_DEV_DEBUG(9)
π DRM_DEV_DEBUG β bestie's guide to debug output for generic drm code
okay so this is a page straight out of the Kernel API Manual, and the star of the show is DRM_DEV_DEBUG(9) β¨ β literally the debug-output baddie for generic drm code. she's iconic, she's useful, and she is also, um, a little bit retired (more on that in a sec, don't come for me π).
πΈ SYNOPSIS πΈ
DRM_DEV_DEBUG (dev , fmt , ... );
that's the whole vibe. one call, a device, a format, and however many extra args you feel like throwing at it π«Ά.
π ARGUMENTS π
devβ the device pointer. like, whose device are we talking about, bestie? this one.fmtβ a printf-like format string. yes, the same energy asprintf, so you already know what you're doing π ....β variable arguments. the lil extras that fill in the blanks in yourfmt. throw in as many as the format asks for.
β οΈ NOTE β οΈ
this is deprecated in favor of drm_dbg_core.
fr fr, she said it herself. not me being dramatic β this is deprecated, so treat her like a throwback track, not the new release. when you're writing fresh code, drm_dbg_core is the main character π. this is not a "maybe", she's genuinely marked deprecated, so don't build new stuff on her.
π₯ SEE ALSO π₯
the whole friend group, in the order they showed up π β and yes, the kernel file ./include/drm/drm_print.h is part of the list, so she's getting a shoutout too:
- Kernel file
./include/drm/drm_print.hprint(9) - enum drm_debug_category(9)
- struct drm_printer(9)
- drm_vprintf(9)
- drm_printf_indent(9)
- struct drm_print_iterator(9)
- drm_coredump_printer(9)
- drm_coredump_printer_is_full(9)
- drm_seq_file_printer(9)
- drm_info_printer(9)
- drm_dbg_printer(9)
- drm_err_printer(9)
- drm_line_printer(9)
DRM_DEV_ERROR(9)DRM_DEV_ERROR_RATELIMITED(9)DRM_DEV_DEBUG_DRIVER(9)DRM_DEV_DEBUG_KMS(9)
like, go read all of them, iykyk π¦.
<div align="center">π</div>
and that's the whole page, bestie π β sourced from that ./include/drm corner of the tree, dated October 2026, filed under DRM_DEV_DEBUG(9). mwah, go debug something cute π
β¨π
π¦ 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