Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I2d9700ce398963bfe90602d995ea4faedf082329
#ifdef __cplusplus
// Bit order [0]:0-7 [1]:8-15 ... [7]:56-63
-inline std::string bd_features_text(BD_FEATURES features) {
+inline std::string bd_features_text(const BD_FEATURES& features) {
uint8_t len = BD_FEATURES_LEN;
char buf[255];
char* pbuf = buf;
- uint8_t* b = features;
+ const uint8_t* b = features;
while (len--) {
pbuf += sprintf(pbuf, "0x%02x ", *b++);
}