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:
parent
e7b1f56263
commit
ef55d12d59
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue