Be less verbose when debug is off
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:13:07 +0000 (12:13 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 7 Apr 2011 10:13:07 +0000 (12:13 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kinect.c

index 0322bad..0d8acda 100644 (file)
--- a/kinect.c
+++ b/kinect.c
@@ -147,7 +147,7 @@ static int send_cmd(struct gspca_dev *gspca_dev, uint16_t cmd, void *cmdbuf,
        memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len);
 
        res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr));
-       info("Control cmd=%04x tag=%04x len=%04x: %d", cmd, sd->cam_tag, cmd_len, res);
+       PDEBUG(D_USBO, "Control cmd=%04x tag=%04x len=%04x: %d", cmd, sd->cam_tag, cmd_len, res);
        if (res < 0) {
                err("send_cmd: Output control transfer failed (%d)", res);
                return res;
@@ -156,7 +156,7 @@ static int send_cmd(struct gspca_dev *gspca_dev, uint16_t cmd, void *cmdbuf,
        do {
                actual_len = kinect_read(udev, ibuf, 0x200);
        } while (actual_len == 0);
-       info("Control reply: %d", res);
+       PDEBUG(D_USBO, "Control reply: %d", res);
        if (actual_len < sizeof(*rhdr)) {
                err("send_cmd: Input control transfer failed (%d)", res);
                return res;