aboutsummaryrefslogtreecommitdiff
path: root/libusb/os/haiku_pollfs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/os/haiku_pollfs.cpp')
-rw-r--r--libusb/os/haiku_pollfs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libusb/os/haiku_pollfs.cpp b/libusb/os/haiku_pollfs.cpp
index cb4fda8..b85edf7 100644
--- a/libusb/os/haiku_pollfs.cpp
+++ b/libusb/os/haiku_pollfs.cpp
@@ -100,14 +100,14 @@ WatchedEntry::WatchedEntry(BMessenger *messenger, entry_ref *ref)
for_each_context(ctx) {
struct libusb_device *dev = usbi_get_device_by_session_id(ctx, session_id);
if (dev) {
- usbi_dbg("using previously allocated device with location %lu", session_id);
+ usbi_dbg(NULL, "using previously allocated device with location %lu", session_id);
libusb_unref_device(dev);
continue;
}
- usbi_dbg("allocating new device with location %lu", session_id);
+ usbi_dbg(NULL, "allocating new device with location %lu", session_id);
dev = usbi_alloc_device(ctx, session_id);
if (!dev) {
- usbi_dbg("device allocation failed");
+ usbi_dbg(NULL, "device allocation failed");
continue;
}
*((USBDevice **)usbi_get_device_priv(dev)) = fDevice;
@@ -134,7 +134,7 @@ WatchedEntry::WatchedEntry(BMessenger *messenger, entry_ref *ref)
usbi_localize_device_descriptor(&dev->device_descriptor);
if (usbi_sanitize_device(dev) < 0) {
- usbi_dbg("device sanitization failed");
+ usbi_dbg(NULL, "device sanitization failed");
libusb_unref_device(dev);
continue;
}
@@ -178,7 +178,7 @@ WatchedEntry::~WatchedEntry()
usbi_disconnect_device(dev);
libusb_unref_device(dev);
} else {
- usbi_dbg("device with location %lu not found", session_id);
+ usbi_dbg(ctx, "device with location %lu not found", session_id);
}
}
usbi_mutex_static_unlock(&active_contexts_lock);