Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271733
b: refs/heads/master
c: 857011e
h: refs/heads/master
i:
  271731: e4d1f45
v: v3
  • Loading branch information
Joe Perches authored and Mauro Carvalho Chehab committed Sep 4, 2011
1 parent bfcc609 commit 6e2d3cd
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8af443e581ab57a6a38f595eb40be3514ea55195
refs/heads/master: 857011e4d9bf47b39abcc89541a58c56e4df34be
66 changes: 35 additions & 31 deletions trunk/drivers/media/video/et61x251/et61x251.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,45 +165,49 @@ et61x251_attach_sensor(struct et61x251_device* cam,
#undef DBG
#undef KDBG
#ifdef ET61X251_DEBUG
# define DBG(level, fmt, args...) \
do { \
if (debug >= (level)) { \
if ((level) == 1) \
dev_err(&cam->usbdev->dev, fmt "\n", ## args); \
else if ((level) == 2) \
dev_info(&cam->usbdev->dev, fmt "\n", ## args); \
else if ((level) >= 3) \
dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", \
__FILE__, __func__, __LINE__ , ## args); \
} \
#define DBG(level, fmt, ...) \
do { \
if (debug >= (level)) { \
if ((level) == 1) \
dev_err(&cam->usbdev->dev, fmt "\n", \
##__VA_ARGS__); \
else if ((level) == 2) \
dev_info(&cam->usbdev->dev, fmt "\n", \
##__VA_ARGS__); \
else if ((level) >= 3) \
dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", \
__FILE__, __func__, __LINE__, \
##__VA_ARGS__); \
} \
} while (0)
# define KDBG(level, fmt, args...) \
do { \
if (debug >= (level)) { \
if ((level) == 1 || (level) == 2) \
pr_info("et61x251: " fmt "\n", ## args); \
else if ((level) == 3) \
pr_debug("sn9c102: [%s:%s:%d] " fmt "\n", __FILE__, \
__func__, __LINE__ , ## args); \
} \
#define KDBG(level, fmt, ...) \
do { \
if (debug >= (level)) { \
if ((level) == 1 || (level) == 2) \
pr_info(fmt "\n", ##__VA_ARGS__); \
else if ((level) == 3) \
pr_debug("[%s:%s:%d] " fmt "\n", \
__FILE__, __func__, __LINE__, \
##__VA_ARGS__); \
} \
} while (0)
# define V4LDBG(level, name, cmd) \
do { \
if (debug >= (level)) \
v4l_print_ioctl(name, cmd); \
#define V4LDBG(level, name, cmd) \
do { \
if (debug >= (level)) \
v4l_print_ioctl(name, cmd); \
} while (0)
#else
# define DBG(level, fmt, args...) do {;} while(0)
# define KDBG(level, fmt, args...) do {;} while(0)
# define V4LDBG(level, name, cmd) do {;} while(0)
#define DBG(level, fmt, ...) do {;} while(0)
#define KDBG(level, fmt, ...) do {;} while(0)
#define V4LDBG(level, name, cmd) do {;} while(0)
#endif

#undef PDBG
#define PDBG(fmt, args...) \
dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", __FILE__, __func__, \
__LINE__ , ## args)
#define PDBG(fmt, ...) \
dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", \
__FILE__, __func__, __LINE__, ##__VA_ARGS__)

#undef PDBGG
#define PDBGG(fmt, args...) do {;} while(0) /* placeholder */
#define PDBGG(fmt, args...) do {;} while (0) /* placeholder */

#endif /* _ET61X251_H_ */
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/et61x251/et61x251_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
***************************************************************************/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/et61x251/et61x251_tas5130d1b.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
***************************************************************************/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include "et61x251_sensor.h"


Expand Down

0 comments on commit 6e2d3cd

Please sign in to comment.