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

Commit 12d6e3e2 authored by Chris Manton's avatar Chris Manton
Browse files

Proper const API for stack/include/bt_type::bd_features_text

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2d9700ce398963bfe90602d995ea4faedf082329
parent aaca5573
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -623,11 +623,11 @@ typedef uint8_t

#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++);
  }