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

Function nvlist_dump_error_check

freebsd/contrib/libnv/nvlist.c:423–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422#ifndef _KERNEL
423static bool
424nvlist_dump_error_check(const nvlist_t *nvl, int fd, int level)
425{
426
427 if (nvlist_error(nvl) != 0) {
428 dprintf(fd, "%*serror: %d\n", level * 4, "",
429 nvlist_error(nvl));
430 return (true);
431 }
432
433 return (false);
434}
435
436/*
437 * Dump content of nvlist.

Callers 1

nvlist_dumpFunction · 0.85

Calls 1

nvlist_errorFunction · 0.85

Tested by

no test coverage detected