| 270 | } |
| 271 | |
| 272 | int |
| 273 | snprintf_uuid(char *buf, size_t sz, struct uuid *uuid) |
| 274 | { |
| 275 | struct uuid_private *id; |
| 276 | int cnt; |
| 277 | |
| 278 | id = (struct uuid_private *)uuid; |
| 279 | cnt = snprintf(buf, sz, "%08x-%04x-%04x-%04x-%04x%04x%04x", |
| 280 | id->time.x.low, id->time.x.mid, id->time.x.hi, be16toh(id->seq), |
| 281 | be16toh(id->node[0]), be16toh(id->node[1]), be16toh(id->node[2])); |
| 282 | return (cnt); |
| 283 | } |
| 284 | |
| 285 | int |
| 286 | printf_uuid(struct uuid *uuid) |
no test coverage detected