5

我正在尝试调试和优化内核启动时间。我正在使用 QEMU 来模拟内核。我已经用 KERN_DEBUG 放置了一些我的 printk,但它们没有显示在任何终端上。我不得不将它们更改为 KERN_INFO,然后我可以看到相同的内容。

我的调试日志级别是 7。我在配置内核时更改了它。

谁能告诉我打印件是否正在缓冲到任何其他终端?

4

1 回答 1

7

我之前实际上遇到过这个问题..我最终以“糟糕”的方式解决了这个问题..

尝试将 loglevel=8 添加到内核启动参数中。

另外,根据http://elinux.org/Debugging_by_printing
Only messages with a value lower (not lower equal) than the console_loglevel will be printed.

于 2013-08-08T16:40:02.137 回答