diff options
author | Bastian Krause <bst@pengutronix.de> | 2021-04-30 13:56:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-03 12:37:12 +0200 |
commit | bed436698993a6dad03002b76566282fc7b9aa28 (patch) | |
tree | 8e27fc95f52befa2c9ddde9921bad2167fccba28 /scripts | |
parent | af0f068a6edad45b033e772056ac0352e1ba3613 (diff) | |
download | barebox-bed436698993a6dad03002b76566282fc7b9aa28.tar.gz barebox-bed436698993a6dad03002b76566282fc7b9aa28.tar.xz |
scripts: imx-usb-loader: print excluded USB device message only on verbose
If a USB device path is specified, it is expected that other devices will
be ignored. So print that message only on verbose > 0.
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210430115640.21011-1-bst@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/imx/imx-usb-loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c index e277d29035..6f9104e816 100644 --- a/scripts/imx/imx-usb-loader.c +++ b/scripts/imx/imx-usb-loader.c @@ -314,7 +314,7 @@ 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 + else if (verbose) fprintf(stderr, " excluded by device path option\n"); done: |