Android KERN_DEBUG日志级别

时间:2013-10-27 16:19:12

标签: android linux-kernel printk

在Android中写入KERN_DEBUG日志级别在哪里?例如,如果我打电话

printk(KERN_DEBUG "666 The beast lives here 666");

那么输出写在哪里?

1 个答案:

答案 0 :(得分:0)

我明白了。在Android中,可以使用

读取printk的输出
    $ adb shell cat /proc/kmsg

或者,如果之前的日志已写入之前,则使用

    $ adb shell /proc/last_kmsg

    $ adb shell dmesg
相关问题