Index | Thread | Search

From:
"Peter J. Philipp" <pjp@delphinusdns.org>
Subject:
last commit to /sys/usb/uvideo.c
To:
tech@openbsd.org
Cc:
jsg@openbsd.org, mpi@openbsd.org
Date:
Sat, 20 Jul 2024 14:22:18 +0200

Download raw body.

Thread
Hi,

The last commit to uvideo.c removed #include's that are needed for the DEBUG
mode '#define UVIDEO_DEBUG 1' at the top of its checking.

Only as an example I'm going to paste a patch in here that needs to be redone,
it won't apply:

--- uvideo.c    23 May 2024 03:21:09 -0000      1.220
+++ uvideo.c    20 Jul 2024 12:20:13 -0000
@@ -38,7 +38,9 @@
 
 #include <dev/video_if.h>
 
+#define UVIDEO_DEBUG 1
 #ifdef UVIDEO_DEBUG
+#include <sys/fcntl.h>
 int uvideo_debug = 1;
 #define DPRINTF(l, x...) do { if ((l) <= uvideo_debug) printf(x); } while (0)
 #else

This will allow this file to compile again with the DEBUG.

-pjp
-- 
** all info about me:  lynx https://callpeter.tel, dig loc delphinusdns.org **