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

Commit 8774ef2e authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add tBTA_DM_SRVCS::ToString am: 4a000ae5 am: db63682a

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1534208

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2f3f5d40960c89cec9424ec55bdaa59c7057024c
parents 65e1e3dc db63682a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -26,8 +26,10 @@

#include <base/strings/stringprintf.h>
#include <memory>
#include <string>
#include "bt_target.h"
#include "bta/sys/bta_sys.h"
#include "main/shim/dumpsys.h"

#include "bta/include/bta_gatt_api.h"

@@ -224,6 +226,13 @@ typedef struct {
  tBTA_SYS_CONN_STATUS state;
  bool new_request;

  std::string ToString() const {
    return base::StringPrintf(
        "peer:%s sys_name:%s app_id:%hhu state:%s new:request:%s",
        PRIVATE_ADDRESS(peer_bdaddr), BtaIdSysText(id).c_str(), app_id,
        bta_sys_conn_status_text(state).c_str(), logbool(new_request).c_str());
  }

} tBTA_DM_SRVCS;

#ifndef BTA_DM_NUM_CONN_SRVS