blob: 65eb46796dec9ef0e72bb07d3d24acf862d546a2 [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 "link_type.h"
#include <zircon/assert.h>
namespace bt {
std::string LinkTypeToString(LinkType type) {
switch (type) {
case LinkType::kACL:
return "ACL";
case LinkType::kSCO:
return "SCO";
case LinkType::kESCO:
return "ESCO";
case LinkType::kLE:
return "LE";
}
ZX_PANIC("invalid link type: %u", static_cast<unsigned int>(type));
return "(invalid)";
}
} // namespace bt