staging: vt6655: fix DBG_PRT and PRINT_K macros
Wrap both macros inside a 'do { ... } while(0)' to prevent breakage if used within another 'if'. Also fix a usage of DBG_PRT with a missing semicolon. Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2ca407b96
commit
c720dadab7
2 changed files with 12 additions and 3 deletions
|
@ -148,8 +148,17 @@
|
|||
|
||||
/*--------------------- Export Types ------------------------------*/
|
||||
|
||||
#define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); }
|
||||
#define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); }
|
||||
#define DBG_PRT(l, p, args...) \
|
||||
do { \
|
||||
if (l <= msglevel) \
|
||||
printk(p, ##args); \
|
||||
} while (0)
|
||||
|
||||
#define PRINT_K(p, args...) \
|
||||
do { \
|
||||
if (PRIVATE_Message) \
|
||||
printk(p, ##args); \
|
||||
} while (0)
|
||||
|
||||
//0:11A 1:11B 2:11G
|
||||
typedef enum _VIA_BB_TYPE
|
||||
|
|
|
@ -680,7 +680,7 @@ static int wpa_get_scan(PSDevice pDevice,
|
|||
ret = -EFAULT;
|
||||
}
|
||||
param->u.scan_results.scan_count = count;
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " param->u.scan_results.scan_count = %d\n", count)
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " param->u.scan_results.scan_count = %d\n", count);
|
||||
|
||||
kfree(pBuf);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue