Deleted Added
full compact
libnvpair.c (225736) libnvpair.c (243674)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2012 by Delphix. All rights reserved.
23 */
24
25#include <solaris.h>
26#include <inttypes.h>
27#include <unistd.h>
28#include <strings.h>
29#include <libintl.h>
30#include <stdarg.h>

--- 766 unchanged lines hidden (view full) ---

797 uint_t i, count;
798
799 if (list == NULL) {
800 return;
801 }
802
803 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) {
804 switch (nvpair_type(elem)) {
24 */
25
26#include <solaris.h>
27#include <inttypes.h>
28#include <unistd.h>
29#include <strings.h>
30#include <libintl.h>
31#include <stdarg.h>

--- 766 unchanged lines hidden (view full) ---

798 uint_t i, count;
799
800 if (list == NULL) {
801 return;
802 }
803
804 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) {
805 switch (nvpair_type(elem)) {
806 case DATA_TYPE_BOOLEAN:
807 (void) printf("%*s%s\n", indent, "", nvpair_name(elem));
808 break;
809
805 case DATA_TYPE_BOOLEAN_VALUE:
806 (void) nvpair_value_boolean_value(elem, &bool_value);
807 (void) printf("%*s%s: %s\n", indent, "",
808 nvpair_name(elem), bool_value ? "true" : "false");
809 break;
810
811 case DATA_TYPE_BYTE:
812 NVP(elem, byte, uchar_t, int, "%u");

--- 456 unchanged lines hidden ---
810 case DATA_TYPE_BOOLEAN_VALUE:
811 (void) nvpair_value_boolean_value(elem, &bool_value);
812 (void) printf("%*s%s: %s\n", indent, "",
813 nvpair_name(elem), bool_value ? "true" : "false");
814 break;
815
816 case DATA_TYPE_BYTE:
817 NVP(elem, byte, uchar_t, int, "%u");

--- 456 unchanged lines hidden ---