host: Print strerror(errno) in case of problems opening the USB device

Change-Id: If446bf08655739281f616df952714751fe9a3b18
This commit is contained in:
Harald Welte
2022-01-25 16:09:14 +01:00
parent ea9a91f5ce
commit 3f0d92f282
3 changed files with 3 additions and 3 deletions

View File

@@ -313,7 +313,7 @@ int main(int argc, char **argv)
osmo_strlcpy(ifm->path, path, sizeof(ifm->path));
transp->usb_devh = osmo_libusb_open_claim_interface(NULL, NULL, ifm);
if (!transp->usb_devh) {
fprintf(stderr, "can't open USB device\n");
fprintf(stderr, "can't open USB device: %s\n", strerror(errno));
goto close_exit;
}