blob: 7dc6537c534a6312eefd136da36c4644c8122b72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "tools/rbd_mirror/service_daemon/Types.h"
#include <iostream>
namespace rbd {
namespace mirror {
namespace service_daemon {
std::ostream& operator<<(std::ostream& os, const CalloutLevel& callout_level) {
switch (callout_level) {
case CALLOUT_LEVEL_INFO:
os << "info";
break;
case CALLOUT_LEVEL_WARNING:
os << "warning";
break;
case CALLOUT_LEVEL_ERROR:
os << "error";
break;
}
return os;
}
} // namespace service_daemon
} // namespace mirror
} // namespace rbd
|