summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-05-21 11:40:43 +0100
committerPete Batard <pbatard@gmail.com>2010-05-21 11:40:43 +0100
commit77fb9c63d74d70d0f7407fbd3b32ff85fc27b086 (patch)
tree70232679ae0218961573351a777fdce04860bb6c
parent9aa04bfba84f1242168a13f19c028643fa068bab (diff)
downloadlibusb-77fb9c63d74d70d0f7407fbd3b32ff85fc27b086.tar.gz
changed the DuplicateHandle failure from warning to debug
This is because WinUSB handles are not duplicable, and generate a lot of these warnings.
-rw-r--r--libusb/os/poll_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c
index fe27d53..bd4fefb 100644
--- a/libusb/os/poll_windows.c
+++ b/libusb/os/poll_windows.c
@@ -411,7 +411,7 @@ struct winfd usbi_create_fd(HANDLE handle, int access_mode)
_poll_fd[i].thread_id = GetCurrentThreadId();
if (!DuplicateHandle(GetCurrentProcess(), handle, GetCurrentProcess(),
&wfd.handle, 0, TRUE, DUPLICATE_SAME_ACCESS)) {
- usbi_warn(NULL, "could not duplicate handle for CancelIo - using original one");
+ usbi_dbg("could not duplicate handle for CancelIo - using original one");
wfd.handle = handle;
// Make sure we won't close the original handle on fd deletion then
_poll_fd[i].original_handle = INVALID_HANDLE_VALUE;