| 282 | } |
| 283 | |
| 284 | static std::string hex_str(const void *p, int len) |
| 285 | { |
| 286 | bufferlist bl; |
| 287 | bl.append_hole(len); |
| 288 | memcpy(bl.c_str(), p, len); |
| 289 | std::stringstream ss; |
| 290 | bl.hexdump(ss); |
| 291 | return ss.str(); |
| 292 | } |
| 293 | |
| 294 | std::ostream& operator<<(std::ostream& out, const ceph_fscrypt_key_identifier& kid) { |
| 295 | out << hex_str(kid.raw, sizeof(kid.raw)); |
no test coverage detected