Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
KERN_DEBUG 日志级别在 Android 中写入到哪里?例如,如果我打电话给
printk(KERN_DEBUG "666 The beast lives here 666");
那么输出写在哪里?
我想到了。在 Android 中,printk 的输出可以用
$ adb shell cat /proc/kmsg
或者,如果之前已写入先前的日志,则使用
$ adb shell /proc/last_kmsg
或与
$ adb shell dmesg