summaryrefslogtreecommitdiff
path: root/gusb/gusb-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-device.c')
-rw-r--r--gusb/gusb-device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 817c5f2..69901b6 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -861,8 +861,11 @@ g_usb_device_load_event(GUsbDevice *self, const gchar *id)
GUsbDevicePrivate *priv = GET_PRIVATE(self);
/* reset back to the beginning */
- if (priv->event_idx >= priv->events->len)
+ if (priv->event_idx >= priv->events->len) {
+ if (_g_usb_context_has_flag(priv->context, G_USB_CONTEXT_FLAGS_DEBUG))
+ g_debug("resetting event index");
priv->event_idx = 0;
+ }
/* look for the next event in the sequence */
for (guint i = priv->event_idx; i < priv->events->len; i++) {