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

Oleksij Rempel o.rempel at pengutronix.de
Fri Mar 3 02:38:41 PST 2017


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

Signed-off-by: Oleksij Rempel <o.rempel at pengutronix.de>
---
 scripts/imx/imx-usb-loader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index e8d746785..b2c9f8f5a 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -243,6 +243,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);
-- 
2.11.0




More information about the barebox mailing list