summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2017-03-03 11:38:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-06 08:13:03 +0100
commitef55d12d59771b64e764a777aa3d7963e2ebb8dd (patch)
treedaeb0e0b4af7f1eda1e52552d0689ce72e72defc /scripts
parente7b1f56263adea753563a4e8856c4232d1ba249f (diff)
downloadbarebox-ef55d12d59771b64e764a777aa3d7963e2ebb8dd.tar.gz
barebox-ef55d12d59771b64e764a777aa3d7963e2ebb8dd.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/imx/imx-usb-loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 2c8a118923..ac7bc3ee94 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -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);