blob: ef4da266d5f06957c0abbcfbd5b5a9cbe43e1c31 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -07003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/**=========================================================================
23
24 \file pmmDebug.c
25
26 \brief implementation for log Debug related APIs
27
28 \author Sunit Bhatia
29
30 Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved.
31
32 Qualcomm Confidential and Proprietary.
33
34 ========================================================================*/
35
36#include "pmmDebug.h"
37
38void pmmLog(tpAniSirGlobal pMac, tANI_U32 loglevel, const char *pString,...)
39{
40#ifdef WLAN_DEBUG
41 // Verify against current log level
42 if ( loglevel > pMac->utils.gLogDbgLevel[LOG_INDEX_FOR_MODULE( SIR_PMM_MODULE_ID )] )
43 return;
44 else
45 {
46 va_list marker;
47
48 va_start( marker, pString ); /* Initialize variable arguments. */
49
50 logDebug(pMac, SIR_PMM_MODULE_ID, loglevel, pString, marker);
51
52 va_end( marker ); /* Reset variable arguments. */
53 }
54#endif
55}