Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7d9b3489 authored by Aritra Sen's avatar Aritra Sen
Browse files

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
parent bf15bee5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment