summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-04-12 10:09:13 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-04-12 10:09:13 +0000
commitb2a2a9884d0eeb6babeffebd36934a0fc88c8021 (patch)
tree0799dad4269fa9ab635020af145104437422d93a /sys/dev/usb
parent57127838c580286ba8712505f4742e021513e2c1 (diff)
Fix some debug output.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uvideo.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index d33a8113375..20fbc8fffc0 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.4 2008/04/11 05:37:36 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.5 2008/04/12 10:09:12 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -516,7 +516,6 @@ uvideo_vs_set_probe(struct uvideo_softc *sc, uint8_t *probe_data)
USETW(req.wLength, 26);
pc = (struct usb_video_probe_commit *)probe_data;
- //USETW(pc->bmHint, 1);
pc->bFormatIndex = 1;
pc->bFrameIndex = 1;
@@ -535,8 +534,8 @@ uvideo_vs_set_probe(struct uvideo_softc *sc, uint8_t *probe_data)
DPRINTF(1, "bFrameIndex=0x%02x\n", pc->bFrameIndex);
DPRINTF(1, "dwFrameInterval=%d (ns)\n", UGETDW(pc->dwFrameInterval));
DPRINTF(1, "wKeyFrameRate=%d\n", UGETW(pc->wKeyFrameRate));
- DPRINTF(1, "wPFrameRate=0x%d\n", UGETW(pc->wPFrameRate));
- DPRINTF(1, "wCompQuality=0x%d\n", UGETW(pc->wCompQuality));
+ DPRINTF(1, "wPFrameRate=%d\n", UGETW(pc->wPFrameRate));
+ DPRINTF(1, "wCompQuality=%d\n", UGETW(pc->wCompQuality));
DPRINTF(1, "wCompWindowSize=0x%04x\n", UGETW(pc->wCompWindowSize));
DPRINTF(1, "wDelay=%d (ms)\n", UGETW(pc->wDelay));
DPRINTF(1, "dwMaxVideoFrameSize=%d (bytes)\n",
@@ -580,8 +579,8 @@ uvideo_vs_get_probe(struct uvideo_softc *sc, uint8_t *probe_data)
DPRINTF(1, "bFrameIndex=0x%02x\n", pc->bFrameIndex);
DPRINTF(1, "dwFrameInterval=%d (ns)\n", UGETDW(pc->dwFrameInterval));
DPRINTF(1, "wKeyFrameRate=%d\n", UGETW(pc->wKeyFrameRate));
- DPRINTF(1, "wPFrameRate=0x%d\n", UGETW(pc->wPFrameRate));
- DPRINTF(1, "wCompQuality=0x%d\n", UGETW(pc->wCompQuality));
+ DPRINTF(1, "wPFrameRate=%d\n", UGETW(pc->wPFrameRate));
+ DPRINTF(1, "wCompQuality=%d\n", UGETW(pc->wCompQuality));
DPRINTF(1, "wCompWindowSize=0x%04x\n", UGETW(pc->wCompWindowSize));
DPRINTF(1, "wDelay=%d (ms)\n", UGETW(pc->wDelay));
DPRINTF(1, "dwMaxVideoFrameSize=%d (bytes)\n",
@@ -644,7 +643,6 @@ uvideo_vs_decode_stream_header(struct uvideo_softc *sc, uint8_t *frame,
return (-1);
}
-
DPRINTF(2, "%s: frame_size = %d\n", DEVNAME(sc), frame_size);
if (header_flags & UVIDEO_STREAM_FID) {