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

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

Add stack/btm/security_device_record::ToString am: 9b587b39

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf048256a681ec184e60ff738e8135f2dc4aad78
parents d2db0253 9b587b39
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -18,9 +18,12 @@

#pragma once

#include <base/strings/stringprintf.h>
#include <cstdint>
#include <string>

#include "gd/crypto_toolbox/crypto_toolbox.h"
#include "main/shim/dumpsys.h"
#include "osi/include/alarm.h"
#include "stack/include/btm_api_types.h"
#include "types/raw_address.h"
@@ -355,4 +358,11 @@ typedef struct {
  tBTM_SEC_BLE ble;
  tBTM_LE_CONN_PRAMS conn_params;

  std::string ToString() const {
    return base::StringPrintf(
        "%s %6s name:\"%s\" supports_SC:%s", PRIVATE_ADDRESS(bd_addr),
        DeviceTypeText(device_type).c_str(), sec_bd_name,
        logbool(remote_supports_secure_connections).c_str());
  }

} tBTM_SEC_DEV_REC;