Use LOG_LEVEL to replace LOG(LEVEL) through out the hearing_aid codebase for a...
Use LOG_LEVEL to replace LOG(LEVEL) through out the hearing_aid codebase for a consistent logging experience. Since LOG_LEVEL uses string formatting we do the following conversions : 1. All enums are rendered as %u unless it already supports string mapping. 2. All std::string need to be converted to char* using c_str() 3. All RawAddress need to be converted to string using ToStringForLogging() and then to char*. LOG(INFO) -> LOG_INFO LOG(WARNING) -> LOG_WARN LOG(ERROR) -> LOG_ERROR LOG(FATAL) -> LOG_ALWAYS_FATAL Bug: 226483111 Test: cert Change-Id: I961f267025c9589a894eedf2ec1720557b3afe7b
Loading
Please register or sign in to comment