MCPcopy Create free account
hub / github.com/ceph/ceph / message

Method message

src/mon/error_code.cc:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48const char* mon_error_category::message(int ev, char* buf,
49 std::size_t len) const noexcept {
50 if (ev == 0)
51 return "No error";
52
53 if (len) {
54 auto s = cpp_strerror(ev);
55 auto n = s.copy(buf, len - 1);
56 *(buf + n) = '\0';
57 }
58 return buf;
59}
60
61std::string mon_error_category::message(int ev) const {
62 if (ev == 0)

Callers

nothing calls this directly

Calls 2

cpp_strerrorFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected