diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2011-02-23 06:17:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 03:54:19 -0400 |
commit | 1e00469599b5841f5b02c436b9958073a0ad576c (patch) | |
tree | ac773022944517e6334c12adb575fa518c18cd5f /drivers/media/video | |
parent | e0eec9af8bf599642f2730ed207296a92e6204aa (diff) |
[media] s5p-fimc: Use dynamic debug
Use pr_debug instead of printk so it is possible to control
debug traces at runtime.
E.g. to enable debug trace in file fimc-core.c use command:
echo -n 'file fimc-core.c +p' > /sys/kernel/debug/dynamic_debug/control
or
echo -n 'file fimc-core.c -p' > /sys/kernel/debug/dynamic_debug/control
to disable.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-core.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h index 41b135249d1..3beb1e5320c 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.h +++ b/drivers/media/video/s5p-fimc/fimc-core.h | |||
@@ -29,12 +29,8 @@ | |||
29 | #define err(fmt, args...) \ | 29 | #define err(fmt, args...) \ |
30 | printk(KERN_ERR "%s:%d: " fmt "\n", __func__, __LINE__, ##args) | 30 | printk(KERN_ERR "%s:%d: " fmt "\n", __func__, __LINE__, ##args) |
31 | 31 | ||
32 | #ifdef DEBUG | ||
33 | #define dbg(fmt, args...) \ | 32 | #define dbg(fmt, args...) \ |
34 | printk(KERN_DEBUG "%s:%d: " fmt "\n", __func__, __LINE__, ##args) | 33 | pr_debug("%s:%d: " fmt "\n", __func__, __LINE__, ##args) |
35 | #else | ||
36 | #define dbg(fmt, args...) | ||
37 | #endif | ||
38 | 34 | ||
39 | /* Time to wait for next frame VSYNC interrupt while stopping operation. */ | 35 | /* Time to wait for next frame VSYNC interrupt while stopping operation. */ |
40 | #define FIMC_SHUTDOWN_TIMEOUT ((100*HZ)/1000) | 36 | #define FIMC_SHUTDOWN_TIMEOUT ((100*HZ)/1000) |