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