/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* unix system includes */
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <locale.h>
#include <errno.h>
#include <instzones_api.h>
/*
* consolidation pkg command library includes
*/
#include "pkglib.h"
/*
* local pkg command library includes
*/
#include "install.h"
#include "libinst.h"
#include "libadm.h"
#include "messages.h"
/* Should be defined by cc -D */
#if !defined(TEXT_DOMAIN)
#endif
/* local static data */
/*
* Name: log_msg
* Description: Outputs messages to logging facility.
* Scope: public
* Arguments: a_type - the severity of the message
* a_format - the printf format, plus its arguments
* Returns: none
*/
/*PRINTFLIKE2*/
void
{
char *prefix;
char *p = get_prog_name();
/* process message based on type */
switch (a_type) {
case LOG_MSG_ERR:
default: /* treat unknown type as LOG_MSG_ERR */
break;
case LOG_MSG_WRN: /* warning message */
break;
case LOG_MSG_INFO: /* information message */
break;
case LOG_MSG_DEBUG: /* debugging message */
if (!log_get_verbose()) {
/* no debug messages if not verbose mode */
return;
}
/* output debug prefix to match echoDebug() format */
if ((p != (char *)NULL) && (*p != '\0')) {
}
break;
}
/* output prefix if specified */
}
/* determine size of the message in bytes */
/* allocate storage to hold the message */
/* generate the results of the printf conversion */
/* output formatted message to appropriate destination */
/*
* nothing output, try stderr as a
* last resort
*/
}
}
/* free temporary message storage */
}
/*
* Name: set_verbose
* Description: Turns on verbose output
* Scope: public
* Arguments: verbose = B_TRUE indicates verbose mode
* Returns: none
*/
void
{
}
/*
* Name: get_verbose
* Description: Returns whether or not to output verbose messages
* Scope: public
* Arguments: none
* Returns: B_TRUE - verbose messages should be output
*/
{
return (verbose);
}