1*2820Skz151634 /*
2*2820Skz151634 * CDDL HEADER START
3*2820Skz151634 *
4*2820Skz151634 * The contents of this file are subject to the terms of the
5*2820Skz151634 * Common Development and Distribution License (the "License").
6*2820Skz151634 * You may not use this file except in compliance with the License.
7*2820Skz151634 *
8*2820Skz151634 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2820Skz151634 * or http://www.opensolaris.org/os/licensing.
10*2820Skz151634 * See the License for the specific language governing permissions
11*2820Skz151634 * and limitations under the License.
12*2820Skz151634 *
13*2820Skz151634 * When distributing Covered Code, include this CDDL HEADER in each
14*2820Skz151634 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2820Skz151634 * If applicable, add the following below this CDDL HEADER, with the
16*2820Skz151634 * fields enclosed by brackets "[]" replaced with your own identifying
17*2820Skz151634 * information: Portions Copyright [yyyy] [name of copyright owner]
18*2820Skz151634 *
19*2820Skz151634 * CDDL HEADER END
20*2820Skz151634 */
21*2820Skz151634
22*2820Skz151634 /*
23*2820Skz151634 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24*2820Skz151634 * Use is subject to license terms.
25*2820Skz151634 */
26*2820Skz151634
27*2820Skz151634 #pragma ident "%Z%%M% %I% %E% SMI"
28*2820Skz151634
29*2820Skz151634 #include "drmP.h"
30*2820Skz151634
31*2820Skz151634 void
drm_debug(const char * fmt,...)32*2820Skz151634 drm_debug(const char *fmt, ...)
33*2820Skz151634 {
34*2820Skz151634 va_list ap;
35*2820Skz151634
36*2820Skz151634 va_start(ap, fmt);
37*2820Skz151634 vcmn_err(CE_NOTE, fmt, ap);
38*2820Skz151634 va_end(ap);
39*2820Skz151634 }
40*2820Skz151634
41*2820Skz151634 void
drm_error(const char * fmt,...)42*2820Skz151634 drm_error(const char *fmt, ...)
43*2820Skz151634 {
44*2820Skz151634 va_list ap;
45*2820Skz151634
46*2820Skz151634 va_start(ap, fmt);
47*2820Skz151634 vcmn_err(CE_WARN, fmt, ap);
48*2820Skz151634 va_end(ap);
49*2820Skz151634 }
50*2820Skz151634
51*2820Skz151634 void
drm_info(const char * fmt,...)52*2820Skz151634 drm_info(const char *fmt, ...)
53*2820Skz151634 {
54*2820Skz151634 va_list ap;
55*2820Skz151634
56*2820Skz151634 va_start(ap, fmt);
57*2820Skz151634 vcmn_err(CE_NOTE, fmt, ap);
58*2820Skz151634 va_end(ap);
59*2820Skz151634 }
60