mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 12:33:18 -04:00
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:
committed by
Greg Kroah-Hartman
parent
f2ca407b96
commit
c720dadab7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user