Shut up debug, to see how verbose the driver is
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:10:39 +0000 (12:10 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:10:39 +0000 (12:10 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kinect.c

index 34cbf0b..0322bad 100644 (file)
--- a/kinect.c
+++ b/kinect.c
@@ -31,6 +31,11 @@ MODULE_AUTHOR("Antonio Ospite <ospite@studenti.unina.it>");
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
+#ifdef DEBUG
+int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
+       D_USBI | D_USBO | D_V4L2;
+#endif
+
 struct pkt_hdr {
        uint8_t magic[2];
        uint8_t pad;
@@ -49,9 +54,6 @@ typedef struct {
        uint16_t tag;
 } cam_hdr;
 
-int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
-       D_USBI | D_USBO | D_V4L2;
-
 /* specific webcam descriptor */
 struct sd {
        struct gspca_dev gspca_dev;     /* !! must be the first item */