| // 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 |