/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
*/
/*
* Rendering functions for nvlist_prt that are of use to all types
* of log.
*/
#include <fmdump.h>
#include <stdio.h>
#include <strings.h>
extern topo_hdl_t *fmd_fmri_topo_hold(int);
/*
* Can be appointed to be called for dumping all nvlist members of
* an nvlist we ask to print with nvlist_prt. Return 0 if the
* nvlist is not recognized as an fmri, and default formatting
* will be applied; otherwise format as an fmri string and return 1.
*/
/*ARGSUSED*/
int
{
int err;
return (0);
/*
* Instead of hardcoding known FMRI classes here we'll try
* topo_fmri_nvl2str which should fail gracefully for invalid
* schemes (ie an nvlist that just happens to have the expected
* class and version members but that isn't an FMRI).
*/
return (0);
return (1);
}
/*
* Thin wrapper around libnvpair's inbuilt JSON routine. Simply dumps the
* entire log record nvlist without any reformatting.
*/
/*ARGSUSED*/
int
{
return (-1);
return (0);
}