1// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "mojo/edk/system/ports/name.h"
6
7namespace mojo {
8namespace edk {
9namespace ports {
10
11std::ostream& operator<<(std::ostream& stream, const Name& name) {
12  std::ios::fmtflags flags(stream.flags());
13  stream << std::hex << std::uppercase << name.v1;
14  if (name.v2 != 0)
15    stream << '.' << name.v2;
16  stream.flags(flags);
17  return stream;
18}
19
20}  // namespace ports
21}  // namespace edk
22}  // namespace mojo
23