blob: 1a24143eb627c97d3412d9753fdfcfb1e6c460f8 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "error.h"
#include "src/connectivity/bluetooth/core/bt-host/hci-spec/util.h"
namespace bt {
std::string ProtocolErrorTraits<hci_spec::StatusCode>::ToString(hci_spec::StatusCode ecode) {
return bt_lib_cpp_string::StringPrintf("%s (HCI %#.2x)",
hci_spec::StatusCodeToString(ecode).c_str(),
static_cast<unsigned int>(ecode));
}
} // namespace bt