summaryrefslogtreecommitdiff
path: root/examples/hotplugtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hotplugtest.c')
-rw-r--r--examples/hotplugtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hotplugtest.c b/examples/hotplugtest.c
index 6cdf0c8..368011b 100644
--- a/examples/hotplugtest.c
+++ b/examples/hotplugtest.c
@@ -95,7 +95,9 @@ int main(int argc, char *argv[])
}
while (done < 2) {
- libusb_handle_events (NULL);
+ rc = libusb_handle_events (NULL);
+ if (rc < 0)
+ printf("libusb_handle_events() failed: %s\n", libusb_error_name(rc));
}
libusb_exit (NULL);