mirror of https://gerrit.osmocom.org/libosmocore
osmo_libusb: Print log message on libusb initialization error
Change-Id: I2ac56e378e1279e7e333d93e54cd7a182d76498d
This commit is contained in:
parent
a366a89597
commit
e452dd053e
|
@ -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…
Reference in New Issue