osmo_libusb: Print log message on libusb initialization error

Change-Id: I2ac56e378e1279e7e333d93e54cd7a182d76498d
changes/39/27039/1
Harald Welte 10 months ago
parent a366a89597
commit e452dd053e
  1. 4
      src/usb/osmo_libusb.c

@ -740,8 +740,10 @@ int osmo_libusb_init(libusb_context **pluctx)
int rc;
rc = libusb_init(pluctx);
if (rc != 0)
if (rc != 0) {
LOGP(DLUSB, LOGL_ERROR, "Error initializing libusb: %s\n", libusb_strerror(rc));
return rc;
}
if (pluctx)
luctx = *pluctx;

Loading…
Cancel
Save