Remove infinite recursion in OpenBSD backend
authorWilliam Orr <will@worrbase.com>
Fri, 12 Jul 2019 21:18:27 +0000 (23:18 +0200)
committerNathan Hjelm <hjelmn@google.com>
Fri, 9 Aug 2019 16:14:39 +0000 (09:14 -0700)
`usbi_dbg` calls `usbi_backend.clock_gettime`, so `obsd_clock_gettime` should
not call `usbi_dbg`

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/os/openbsd_usb.c

index a39c0f2..7e8197d 100644 (file)
@@ -519,8 +519,6 @@ obsd_handle_transfer_completion(struct usbi_transfer *itransfer)
 int
 obsd_clock_gettime(int clkid, struct timespec *tp)
 {
-       usbi_dbg("clock %d", clkid);
-
        if (clkid == USBI_CLOCK_REALTIME)
                return clock_gettime(CLOCK_REALTIME, tp);