我正在尝试显示opencore日志。我已经试过ff了。但仍未在logcat中显示日志。
"/android_log_appender.h:75:错误:“格式化不是字符串文字且没有格式参数”
所以我刚刚注释掉了第75行,虽然它编译成功了,但是日志目录中仍然没有显示opencore日志。
有没有人能展示开钻日志?
提前谢谢。
artsylar
发布于 2011-06-05 09:44:03
经过反复试验,我终于能够显示OpenCore日志消息了!下面是我所做的,尽管我还不知道是否需要步骤4和make选项。
#define PV_LOG_INST_LEVEL 5。要解决“LOGE("%s", stringbuf)::”format not a string
LOGE("%s", stringbuf)即可
make ENABLE_PV_LOGGING=1
# echo 8 > /sdcard/pvlogger.txt
发布于 2011-12-20 09:56:58
三个月前我遇到了这个问题。请不要在/android_log_appender.h中注释掉LOGE(stringbuf),否则不会注销。LOGE("%s", stringbuf)而不是LOGE(stringbuf)。
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.
3. ENABLE_PV_LOGGING from 0 to 1 in the pvlogger.h.
4. LOGE("%s", stringbuf) instead of LOGE(stringbuf) in /android_log_appender.h.
Wish you success!https://stackoverflow.com/questions/6224097
复制相似问题