I’m developing Android audio driver. In case I need to add debug function “LOGD” inside constructor Mutex::Autolock::Autolock(Mutex& mutex), which is defined in "frameworks/base/include/utils/threads.h"
I have already include , but there are still compiling error:
frameworks/base/include/utils/threads.h:244:1: error: macro “LOG” passed 6 arguments, but takes just 1
I guess it’s because the keyword inline blocks external macros, but not for sure.
How can I solve this problem?
Thanks in advance!
Try to define LOGD like so:
Remember you must
#include <android/log.h>for this to work.