Commit 11fb06bd authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (10337): gspca - common: Simplify the debug macros.

The err, warning and info redefinitions don't need the use of
do {} while.
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e6b14849
...@@ -33,19 +33,13 @@ extern int gspca_debug; ...@@ -33,19 +33,13 @@ extern int gspca_debug;
#endif #endif
#undef err #undef err
#define err(fmt, args...) \ #define err(fmt, args...) \
do {\ printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args)
printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args); \
} while (0)
#undef info #undef info
#define info(fmt, args...) \ #define info(fmt, args...) \
do {\ printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args)
printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args); \
} while (0)
#undef warn #undef warn
#define warn(fmt, args...) \ #define warn(fmt, args...) \
do {\ printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args)
printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args); \
} while (0)
#define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */
/* image transfers */ /* image transfers */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment