diff options
author | Richard Hughes <richard@hughsie.com> | 2014-12-04 14:59:18 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-12-04 15:00:24 +0000 |
commit | d80a9c35ab0483ef5ed61146bc441042467b94ed (patch) | |
tree | 5ec3116c0afee69db7276dee6c85d635def33ac8 /tools/gusb-main.c | |
parent | 2f5dbc0d5247d8fe330fce4dc96b6ea3e121f398 (diff) | |
download | gusb-d80a9c35ab0483ef5ed61146bc441042467b94ed.tar.gz |
Make the platform ID persistent across re-plug
This was technically a regression since the gudev days as some tools require
the platform ID to be persistent across re-plug.
Diffstat (limited to 'tools/gusb-main.c')
-rw-r--r-- | tools/gusb-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gusb-main.c b/tools/gusb-main.c index 6676af4..a291ccd 100644 --- a/tools/gusb-main.c +++ b/tools/gusb-main.c @@ -223,7 +223,8 @@ gusb_cmd_watch (GUsbCmdPrivate *priv, gchar **values, GError **error) devices = g_usb_context_get_devices (priv->usb_ctx); for (i = 0; i < devices->len; i++) { device = g_ptr_array_index (devices, i); - g_print ("device already present %x:%x\n", + g_print ("device %s already present %x:%x\n", + g_usb_device_get_platform_id (device), g_usb_device_get_bus (device), g_usb_device_get_address (device)); } |