MCPcopy Create free account
hub / github.com/F-Stack/f-stack / snprintf_uuid

Function snprintf_uuid

freebsd/kern/kern_uuid.c:272–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272int
273snprintf_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
285int
286printf_uuid(struct uuid *uuid)

Callers 2

printf_uuidFunction · 0.85
sbuf_printf_uuidFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected