diff --git a/app/src/main/cpp/SensorsProtocol.cpp b/app/src/main/cpp/SensorsProtocol.cpp index dd896aa2..178c48b4 100644 --- a/app/src/main/cpp/SensorsProtocol.cpp +++ b/app/src/main/cpp/SensorsProtocol.cpp @@ -94,6 +94,10 @@ static int64_t get_msec() void DebugLog(int commid, char flag, const char* format, ...) { +#ifndef NDEBUG + ALOGW("FMT: %s", format); + // std::this_thread::sleep_for(std::chrono::milliseconds(100)); +#endif va_list argptr; va_start(argptr, format); @@ -140,6 +144,10 @@ void DebugLog(int commid, char flag, const char* format, ...) #endif delete[] szbuf; + +#ifndef NDEBUG + ALOGW("FMT: %s end", format); +#endif } int SaveLogTofile(int commid, const char *szbuf)