| 1 | /* |
| 2 | * Driver for KeyStream 11b/g wireless LAN cards. |
| 3 | * |
| 4 | * ks_debug.h |
| 5 | * $Id: ks_debug.h 991 2009-09-14 01:38:58Z sekine $ |
| 6 | * |
| 7 | * Copyright (C) 2005-2008 KeyStream Corp. |
| 8 | * Copyright (C) 2009 Renesas Technology Corp. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it undr the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Sotware Foundation. |
| 13 | */ |
| 14 | |
| 15 | #ifndef _KS_DEBUG_H |
| 16 | #define _KS_DEBUG_H |
| 17 | |
| 18 | #include <linux/kernel.h> |
| 19 | |
| 20 | |
| 21 | #ifdef KS_WLAN_DEBUG |
| 22 | #define DPRINTK(n, fmt, args...) \ |
| 23 | if (KS_WLAN_DEBUG>(n)) printk(KERN_NOTICE "%s: "fmt, __FUNCTION__, ## args) |
| 24 | #else |
| 25 | #define DPRINTK(n, fmt, args...) |
| 26 | #endif |
| 27 | |
| 28 | extern void print_buffer(unsigned char *p, int size); |
| 29 | |
| 30 | #endif /* _KS_DEBUG_H */ |
| 31 | |