【问题标题】:KERN_DEBUG printk's at bootup not displayed in QEMU console?启动时的 KERN_DEBUG printk 未显示在 QEMU 控制台中?
【发布时间】:2013-08-08 15:34:43
【问题描述】:

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

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

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

【问题讨论】:

    标签: linux-kernel qemu


    【解决方案1】:

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

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

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

    【讨论】:

    • 那你能把它标记为正确吗?它将帮助其他人解决此问题
    猜你喜欢
    • 1970-01-01
    • 2020-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-04
    相关资源
    最近更新 更多