Print log in init. c

Source: Internet
Author: User

First, the macro used to print logs in this file has error () Info () Notice (),These log macros are restricted in the system as follows:

# Define error (X...) log_write (3, "<3> init:" X)
# Define notice (X...) log_write (5, "<5> init:" X)
# Define Info (X...) log_write (6, "<6> init:" X)
# DefineLog_default_level3/* Messages <= this level are logged */

Log_default_level is 3, which is smaller than 3 and will be output to logcat. Therefore, when tracking logs in the file, the error can be printed out...

Next, useADB shell dmesg> kernel_log.log can be printed to the log of the kernel ~ This command is the kernel log command of the Qualcomm platform. May I ask the vendor from other platforms ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.