adb print kernel output log

 A. Linux kernel printk mechanism
    1.1. Android Linxu kernel kernel is based therefore it is common to log mechanism performed using the output printk Log Android kernel function. And c language similar to printf, printk provide formatted input function, at the same time, it also has the characteristics of all LOG mechanisms - to provide the log level misplaced functions. printk provides 8 log level (defined in detail include / linux / kern_levels.h) is:

    1.2 The simplest use of printk:

   . 1.3 printk output format to use with:

 

Two output print information in the kernel where adb connect

    Android system, log information is stored in the output printk / proc / kmsg, to view the / proc / kmsg content, only enter the following command input on the command line

 

Guess you like

Origin www.cnblogs.com/linux-37ge/p/11300437.html