summaryrefslogtreecommitdiff
path: root/gusb/gusb-device.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-07-24 10:58:06 +0100
committerRichard Hughes <richard@hughsie.com>2017-07-24 10:58:06 +0100
commit6bbeced40faf439eaf6a0afd384f6a909abd8c96 (patch)
treee491b6e7846b673f4999997ad8a1d3ea3b281c08 /gusb/gusb-device.c
parent0951efa755708cc5903ed626a182bc1d698a1635 (diff)
downloadgusb-6bbeced40faf439eaf6a0afd384f6a909abd8c96.tar.gz
trivial: Be less vocal when using G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES
Diffstat (limited to 'gusb/gusb-device.c')
-rw-r--r--gusb/gusb-device.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index b16aabe..747fc5b 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -430,10 +430,8 @@ g_usb_device_open (GUsbDevice *device, GError **error)
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
/* ignore */
- if (g_usb_context_get_flags (device->priv->context) & G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES) {
- g_debug ("using AUTO_OPEN_DEVICES, ignoring");
+ if (g_usb_context_get_flags (device->priv->context) & G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES)
return TRUE;
- }
/* open */
return _g_usb_device_open_internal (device, error);
@@ -621,10 +619,8 @@ g_usb_device_close (GUsbDevice *device,
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
/* ignore */
- if (g_usb_context_get_flags (device->priv->context) & G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES) {
- g_debug ("using AUTO_OPEN_DEVICES, ignoring");
+ if (g_usb_context_get_flags (device->priv->context) & G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES)
return TRUE;
- }
if (device->priv->handle == NULL)
return g_usb_device_not_open_error (device, error);