[cpia] Debug ..
sbertin@mindspring.com
sbertin@mindspring.com
Thu, 23 Mar 2000 23:10:03 -0500 (EST)
On 24 Mar, Samo Gabrovec wrote:
> i used cpia 0.7.1 and in the Makefile i have commented the line
> # DEBUG = -D_CPIA_DEBUG_
> compiled and i`ve gor a module which is NOT loud and it works.
> today i have dl-ed the 0.7.4 and at first forgot to coment it out, loaded
> the modules and i saw that every pic that it takes there`s one line in my
> logs. ok i coment out the debug line and tried to re-compile but it wont.
> i get an error
[errors snipped]
> How do i make the newest driver less noisy ?
> thanks.
Apply this patch, courtesy of George Talusan.
Scott J. Bertin
sbertin@mindspring.com
===================================================================
RCS file: /cvsroot/webcam/cpia/module/cpia.h,v
retrieving revision 0.10
retrieving revision 0.11
diff -u -r0.10 -r0.11
--- cpia/module/cpia.h 2000/03/11 21:51:44 0.10
+++ cpia/module/cpia.h 2000/03/12 15:41:29 0.11
@@ -385,7 +385,7 @@
#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)
#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):"__FUNCTION__"(%d):"fmt,##args)
#else
-#define DBG(fmn,args...) {}
+#define DBG(fmn,args...) do {} while(0)
#endif
#define DEB_BYTE(p)\