summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-08-02 16:34:46 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-08-02 16:34:46 +0000
commitf866f09c53600705111027ace685a3cf09a72c01 (patch)
tree6fb553366f61efaf4af96b5101d18d95c5f979c5 /sys/dev/usb
parent1047c78b56e587170d7ed5c81853d0ffc2099e12 (diff)
Don't print error message if GET_DEF request fails, since this is common
for some devices and we will fail back to GET_CUR then.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uvideo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index b9ce5afaea7..9b82fb0bae5 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.70 2008/08/02 12:32:23 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.71 2008/08/02 16:34:45 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -47,6 +47,7 @@
#include <dev/video_if.h>
+#undef UVIDEO_DEBUG
#ifdef UVIDEO_DEBUG
int uvideo_debug = 1;
#define DPRINTF(l, x...) do { if ((l) <= uvideo_debug) printf(x); } while (0)
@@ -1142,8 +1143,10 @@ uvideo_vs_get_probe(struct uvideo_softc *sc, uint8_t *probe_data,
err = usbd_do_request(sc->sc_udev, &req, probe_data);
if (err) {
- printf("%s: could not GET probe request: %s\n",
- DEVNAME(sc), usbd_errstr(err));
+ if (request != GET_DEF) {
+ printf("%s: could not GET probe request: %s\n",
+ DEVNAME(sc), usbd_errstr(err));
+ }
return (USBD_INVAL);
}
DPRINTF(1, "%s: GET probe request successfully\n", DEVNAME(sc));