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

Commit 4d50cf28 authored by Chris Manton's avatar Chris Manton
Browse files

Add tBTA_HH_DEV_DSCP_INFO::ToString

Toward loggable code

Bug: 163134718
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ic3cdd525b544f593634b9b233722a40f6c10b840
parent 0316abaf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,7 +18,9 @@
#ifndef BTA_HH_API_H
#define BTA_HH_API_H

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

#include "bta/include/bta_api.h"
#include "stack/include/hiddefs.h"
@@ -220,6 +222,11 @@ typedef struct {

  uint8_t flag;
  tBTA_HH_DEV_DESCR descriptor;

  std::string ToString() const {
    return base::StringPrintf("%04x::%04x::%04x", vendor_id, product_id,
                              version);
  }
} tBTA_HH_DEV_DSCP_INFO;

/* callback event data for BTA_HH_OPEN_EVT */