1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15 
16 #include "odm_precomp.h"
17 
ODM_InitDebugSetting23a(struct dm_odm_t * pDM_Odm)18 void ODM_InitDebugSetting23a(struct dm_odm_t *pDM_Odm)
19 {
20 	pDM_Odm->DebugLevel = ODM_DBG_TRACE;
21 	pDM_Odm->DebugComponents = 0;
22 }
23 
24 u32 GlobalDebugLevel23A;
25 
rt_trace(int comp,int level,const char * fmt,...)26 void rt_trace(int comp, int level, const char *fmt, ...)
27 {
28 	struct va_format vaf;
29 	va_list args;
30 
31 	va_start(args, fmt);
32 
33 	vaf.fmt = fmt;
34 	vaf.va = &args;
35 
36 	pr_info(DRIVER_PREFIX " [0x%08x,%d] %pV", comp, level, &vaf);
37 
38 	va_end(args);
39 }
40