summaryrefslogtreecommitdiff
path: root/multimedia/pwcbsd/files/patch-pwc-ctrl.c
diff options
context:
space:
mode:
authorColeman Kane <cokane@FreeBSD.org>2006-12-16 05:50:15 +0000
committerColeman Kane <cokane@FreeBSD.org>2006-12-16 05:50:15 +0000
commite50e48ff32ecae997b6f3b88c2f4759ebce77fea (patch)
tree253f0cb4f85436f13f36e24d816249231ee25b3c /multimedia/pwcbsd/files/patch-pwc-ctrl.c
parentUpdate gstreamer-plugins-ugly to 0.10.5. (diff)
Commit of fixes that make this buildable once again after Rev. 1.82 of
src/sys/dev/usb/usb_port.h hacked off some deprecated compatibilty macros. A number of manually designed device printf statements were replaced with the appropriate calls to device_printf(9). In addition, did a find/replace of other removed macros with the previous definitions from that file. I don't have a camera so I don't know the operative status of this port under -CURRENT yet. PR: ports/106794
Diffstat (limited to '')
-rw-r--r--multimedia/pwcbsd/files/patch-pwc-ctrl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/pwcbsd/files/patch-pwc-ctrl.c b/multimedia/pwcbsd/files/patch-pwc-ctrl.c
new file mode 100644
index 000000000000..3aa15c9ef81e
--- /dev/null
+++ b/multimedia/pwcbsd/files/patch-pwc-ctrl.c
@@ -0,0 +1,14 @@
+--- pwc-ctrl.c Thu Jun 8 20:28:32 2006
++++ pwc-ctrl.c Fri Dec 15 14:37:57 2006
+@@ -434,8 +434,9 @@
+ if (ret == -ENOENT)
+ Info("Video mode %s@%d fps is only supported with the decompressor module (pwcx).\n", size2name[size], frames);
+ else {
+- printf("%s: Failed to set video mode to %s@%d fps; return code = %d\n",
+- USBDEVNAME(pdev->sc_dev),size2name[size], frames, -ret);
++ device_printf(pdev->sc_dev,
++ "Failed to set video mode to %s@%d fps; return code = %d\n",
++ size2name[size], frames, -ret);
+ }
+ return ret;
+ }