Conceptual
Login

Reading Kernel Messages with dmesg and Log Levels

Kernel code cannot print to a terminal the way an ordinary program does; it writes into a ring buffer that you read with the dmesg command. Each message carries a level from debug up to emergency, and the system decides which levels reach your screen. Reading this log is how you see what your driver did, in what order, and where it stopped. Without it, a driver that fails is completely silent.

Questions this Concept answers

  • Why might a message your driver prints never appear on the console?