diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-01 11:20:42 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:29 -0400 |
commit | 11fb06bd8da59c0a516e1b5f3d200a484becdf06 (patch) | |
tree | 2b0041ffd7d8986e08b35568df9b80b455cb07ad | |
parent | e6b148490f5e9ebb90ecb4a8de930be1b8936a16 (diff) |
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: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index e5c8eb709036..6f172e9e5fe9 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -33,19 +33,13 @@ extern int gspca_debug; | |||
33 | #endif | 33 | #endif |
34 | #undef err | 34 | #undef err |
35 | #define err(fmt, args...) \ | 35 | #define err(fmt, args...) \ |
36 | do {\ | 36 | printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args) |
37 | printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args); \ | ||
38 | } while (0) | ||
39 | #undef info | 37 | #undef info |
40 | #define info(fmt, args...) \ | 38 | #define info(fmt, args...) \ |
41 | do {\ | 39 | printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args) |
42 | printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args); \ | ||
43 | } while (0) | ||
44 | #undef warn | 40 | #undef warn |
45 | #define warn(fmt, args...) \ | 41 | #define warn(fmt, args...) \ |
46 | do {\ | 42 | printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args) |
47 | printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args); \ | ||
48 | } while (0) | ||
49 | 43 | ||
50 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ | 44 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ |
51 | /* image transfers */ | 45 | /* image transfers */ |