equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
22 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
|
23 * Copyright (c) 2012 by Delphix. All rights reserved. |
23 */ |
24 */ |
24 |
25 |
25 #include <unistd.h> |
26 #include <unistd.h> |
26 #include <strings.h> |
27 #include <strings.h> |
27 #include <libintl.h> |
28 #include <libintl.h> |
801 return; |
802 return; |
802 } |
803 } |
803 |
804 |
804 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) { |
805 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) { |
805 switch (nvpair_type(elem)) { |
806 switch (nvpair_type(elem)) { |
|
807 case DATA_TYPE_BOOLEAN: |
|
808 (void) printf("%*s%s\n", indent, "", nvpair_name(elem)); |
|
809 break; |
|
810 |
806 case DATA_TYPE_BOOLEAN_VALUE: |
811 case DATA_TYPE_BOOLEAN_VALUE: |
807 (void) nvpair_value_boolean_value(elem, &bool_value); |
812 (void) nvpair_value_boolean_value(elem, &bool_value); |
808 (void) printf("%*s%s: %s\n", indent, "", |
813 (void) printf("%*s%s: %s\n", indent, "", |
809 nvpair_name(elem), bool_value ? "true" : "false"); |
814 nvpair_name(elem), bool_value ? "true" : "false"); |
810 break; |
815 break; |