本文介绍了Android的显示器的OpenCore日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示的OpenCore日志。我已经尝试过FF。但仍日志不会在logcat中显示。搜索结果
1.在SD卡,仍然没有用创建pvlogger.txt。结果
   #回声8> /sdcard/pvlogger.txt结果
2.编辑的PV_LOG_INST_LEVEL从0到5中的pvlogger.h文件,但它会导致编译失败。结果
   /android_log_appender.h:75:错误:格式不是字符串文字,没有格式参数结果
   所以,我刚才注释掉了75行,尽管它编译成功,的OpenCore日志仍然没有显示在logcat中。搜索结果

I am trying to display opencore logs. I have already tried the ff. but still logs are not showing in the logcat.

1. created pvlogger.txt in sdcard and still no use.
# echo 8 > /sdcard/pvlogger.txt
2. Edited the PV_LOG_INST_LEVEL from 0 to 5 in the pvlogger.h file but it causes the compilation to fail.
"/android_log_appender.h:75: error:" format not a string literal and no format argument"
So I have just commented out Line 75, although it compiled successfully, opencore logs are still not showing in the logcat.

是否有任何人谁能够显示的OpenCore日志?_爱

Is there anyone who were able to display the opencore logs?

在此先感谢。搜索结果

artsylar

推荐答案

试错之后,我终于能够显示的OpenCore日志消息!这里就是我所做的,虽然我不知道但如果步骤4,使需要的选项。搜索结果

After trial and errors, I was finally able to show the OpenCore log messages! Here's what I did although I do not know yet if steps 4 and make options are needed.


  1. 新增的#define PV_LOG_INST_LEVEL 5 到\\ Android的\\外部\\的OpenCore \\机器人\\ thread_init.cpp文件。结果

  2. 要解决/android_log_appender.h:75:错误:格式不是字符串文字,没有格式参数的错误,只要编辑\\外部\\的OpenCore \\机器人\\ android_log_appender.h线75从LOGE(的StringBuf)到 LOGE(%S的StringBuf)结果

  3. 编译code。结果
    使ENABLE_PV_LOGGING = 1 结果

  4. 在SD卡创建pvlogger.txt。结果
    #回声8' /sdcard/pvlogger.txt

  1. Added #define PV_LOG_INST_LEVEL 5 to \android\external\opencore\android\thread_init.cpp file.
  2. To solve the "/android_log_appender.h:75: error:" format not a string literal and no format argument" error, just edit \external\opencore\android\android_log_appender.h line 75 from LOGE(stringbuf) to LOGE("%s", stringbuf)
  3. compile the code.
    make ENABLE_PV_LOGGING=1
  4. create pvlogger.txt in sdcard.
    # echo 8 > /sdcard/pvlogger.txt

搜索结果

这篇关于Android的显示器的OpenCore日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-02 22:06