linux/drivers/net/wireless/ti/wlcore/debug.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * This file is part of wl12xx
 *
 * Copyright (C) 2011 Texas Instruments. All rights reserved.
 * Copyright (C) 2008-2009 Nokia Corporation
 *
 * Contact: Luciano Coelho <[email protected]>
 */

#ifndef __DEBUG_H__
#define __DEBUG_H__

#include <linux/bitops.h>
#include <linux/printk.h>

#define DRIVER_NAME
#define DRIVER_PREFIX

enum {};

extern u32 wl12xx_debug_level;

#define DEBUG_DUMP_LIMIT

#define wl1271_error(fmt, arg...)

#define wl1271_warning(fmt, arg...)

#define wl1271_notice(fmt, arg...)

#define wl1271_info(fmt, arg...)

/* define the debug macro differently if dynamic debug is supported */
#if defined(CONFIG_DYNAMIC_DEBUG)
#define wl1271_debug(level, fmt, arg...)
#else
#define wl1271_debug
#endif

#define wl1271_dump(level, prefix, buf, len)

#define wl1271_dump_ascii(level, prefix, buf, len)

#endif /* __DEBUG_H__ */