printf.c revision b819cea2f73f98c5662230cc9affc8cc84f77fcf
/*
* 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) 2012 by Delphix. All rights reserved.
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#include <fakekernel.h>
void abort(void) __NORETURN;
char *volatile panicstr;
char panicbuf[512];
volatile int aok;
static const int
static const char
static const char
/*
* This function is just a stub, exported NODIRECT so that
* comsumers like fksmbd can provide their own.
* (One that actually prints the messages.)
*
* It's used by fakekernel_cprintf() below.
* The flags are SL_... from strlog.h
*/
/* ARGSUSED */
void
{
}
/*
* This formats the message and calls fakekernel_putlog().
* It's exported NODIRECT to allow replacment.
* The flags are SL_... from strlog.h
*/
void
{
char buf[LOG_MSGSIZE];
if (fmt[0] == '^')
flags |= SL_CONSONLY;
else if (fmt[0] == '!')
flags |= SL_LOGONLY;
fmt++;
}
}
/*
* "User-level crash dump", if you will.
*/
void
{
/* Call libc`assfail() so that mdb ::status works */
abort(); /* avoid "noreturn" warnings */
}
void
{
}
void
{
return;
}
/*PRINTFLIKE2*/
void
{
}