/*
 * Copyright (c) 2011-2012, 2014-2015, 2017 The Linux Foundation. All rights reserved.
 *
 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
 *
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
 * above copyright notice and this permission notice appear in all
 * copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

/*
 * This file was originally distributed by Qualcomm Atheros, Inc.
 * under proprietary terms before Copyright ownership was assigned
 * to the Linux Foundation.
 */

/*
 * Author:      Sandesh Goel
 * Date:        02/25/02
 */

#ifndef __POL_DEBUG_H__
#define __POL_DEBUG_H__

#define LOGOFF  0
#define LOGP    1
#define LOGE    2
#define LOGW    3
#define LOG1    4
#define LOG2    5
#define LOG3    6
#define LOG4    7
#define LOGD    8

#define MAC_ADDR_ARRAY(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define MAC_ADDRESS_STR "%02x:%02x:%02x:%02x:%02x:%02x"

#define pe_log(level, args...) QDF_TRACE(QDF_MODULE_ID_PE, level, ## args)
#define pe_logfl(level, format, args...) pe_log(level, FL(format), ## args)

#define pe_alert(format, args...) \
		pe_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args)
#define pe_err(format, args...) \
		pe_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args)
#define pe_warn(format, args...) \
		pe_logfl(QDF_TRACE_LEVEL_WARN, format, ## args)
#define pe_info(format, args...) \
		pe_logfl(QDF_TRACE_LEVEL_INFO, format, ## args)
#define pe_debug(format, args...) \
		pe_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args)

#define PE_ENTER() pe_logfl(QDF_TRACE_LEVEL_DEBUG, "enter")
#define PE_EXIT() pe_logfl(QDF_TRACE_LEVEL_DEBUG, "exit")


#endif
