[PATCH] 2.5.33 : drivers/media/video/cpia.h DBG marco

Frank Davis (fdavis@si.rr.com)
Mon, 2 Sep 2002 16:47:07 -0400 (EDT)


Hello all,
The following patch performs the same as Alessandro's fix to the LOG
macro, but to DBG. Please review.

Regards,
Frank

--- drivers/media/video/cpia.h.old Sat Nov 10 23:35:55 2001
+++ drivers/media/video/cpia.h Mon Sep 2 16:42:07 2002
@@ -383,7 +383,7 @@

#ifdef _CPIA_DEBUG_
#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)
-#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):"__FUNCTION__"(%d):"fmt,##args)
+#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):%s(%d):"fmt,__FUNCTION__, ##args)
#else
#define DBG(fmn,args...) do {} while(0)
#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/