]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix USB device path formatting mixup
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Feb 2010 14:39:13 +0000 (14:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Feb 2010 17:25:12 +0000 (17:25 +0000)
* src/util/hostusb.c: The device path for a USB device wants the
  bus/device IDs in decimal not octal

src/util/hostusb.c

index 3cce66bff1ad48afcfc2b2bfacd0fb0cb8234492..bf9653936ca39ad7b16c5d08786d387be86de6a8 100644 (file)
@@ -184,7 +184,7 @@ usbGetDevice(unsigned bus,
     snprintf(dev->name, sizeof(dev->name), "%.3o:%.3o",
              dev->bus, dev->dev);
     snprintf(dev->path, sizeof(dev->path),
-             USB_DEVFS "%03o/%03o", dev->bus, dev->dev);
+             USB_DEVFS "%03d/%03d", dev->bus, dev->dev);
 
     /* XXX fixme. this should be product/vendor */
     snprintf(dev->id, sizeof(dev->id), "%d %d", dev->bus, dev->dev);