9
0
Fork 0

scripts: imx imx-usb-loader: warn if device was excluded by path option

notify user about the reason why device was ignored by imx-usb-loader.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Oleksij Rempel 2017-03-03 11:38:41 +01:00 committed by Sascha Hauer
parent e7b1f56263
commit ef55d12d59
1 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,8 @@ static int device_location_equal(libusb_device *device, const char *location)
/* walked the full path, all elements match */
if (path_step == path_len)
result = 1;
else
fprintf(stderr, " excluded by device path option\n");
done:
free(loc);