aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libnvpair
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libnvpair')
-rw-r--r--lib/libnvpair/Makefile.am3
-rw-r--r--lib/libnvpair/libnvpair.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/libnvpair/Makefile.am b/lib/libnvpair/Makefile.am
index 467f461a3..7a8f96a05 100644
--- a/lib/libnvpair/Makefile.am
+++ b/lib/libnvpair/Makefile.am
@@ -12,7 +12,8 @@ libnvpair_la_SOURCES = \
$(top_srcdir)/lib/libnvpair/libnvpair.c \
$(top_srcdir)/lib/libnvpair/nvpair_alloc_system.c \
$(top_srcdir)/module/nvpair/nvpair_alloc_fixed.c \
- $(top_srcdir)/module/nvpair/nvpair.c
+ $(top_srcdir)/module/nvpair/nvpair.c \
+ $(top_srcdir)/module/nvpair/fnvpair.c
libnvpair_la_LIBADD = \
$(top_builddir)/lib/libuutil/libuutil.la
diff --git a/lib/libnvpair/libnvpair.c b/lib/libnvpair/libnvpair.c
index 606a919a4..b852cb617 100644
--- a/lib/libnvpair/libnvpair.c
+++ b/lib/libnvpair/libnvpair.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012 by Delphix. All rights reserved.
*/
#include <unistd.h>
@@ -803,6 +804,10 @@ dump_nvlist(nvlist_t *list, int indent)
while ((elem = nvlist_next_nvpair(list, elem)) != NULL) {
switch (nvpair_type(elem)) {
+ case DATA_TYPE_BOOLEAN:
+ (void) printf("%*s%s\n", indent, "", nvpair_name(elem));
+ break;
+
case DATA_TYPE_BOOLEAN_VALUE:
(void) nvpair_value_boolean_value(elem, &bool_value);
(void) printf("%*s%s: %s\n", indent, "",