Deepin Linux
Deepin Linux
Jan 8, 2026 · Backend Development

How to Dynamically Enable dev_dbg in the Linux Kernel Without Reboot

This article explains the purpose of dev_info, dev_dbg, and dev_err in Linux kernel logging, shows how to view their output, and provides step‑by‑step methods—including dynamic debug, kernel configuration, and module parameters—to enable or disable dev_dbg at runtime without recompiling or rebooting.

Driver developmentLinux kerneldev_dbg
0 likes · 26 min read
How to Dynamically Enable dev_dbg in the Linux Kernel Without Reboot
Liangxu Linux
Liangxu Linux
Jul 7, 2021 · Fundamentals

Master Linux Kernel Debugging with dev_dbg and Dynamic Debug

This guide explains why kernel developers should replace printk with dev_info, dev_dbg, and dev_err, shows how to enable and use CONFIG_DYNAMIC_DEBUG and debugfs to control dev_dbg output at runtime, and provides code examples and a detailed analysis of the underlying implementation.

dev_dbgdriver-developmentdynamic debug
0 likes · 9 min read
Master Linux Kernel Debugging with dev_dbg and Dynamic Debug