mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 1/2] scripts: imx-usb-loader: print excluded USB device message only on verbose
@ 2021-04-30 11:56 Bastian Krause
  2021-04-30 11:56 ` [PATCH v2 2/2] scripts: imx-usb-loader: print USB VID/PID of excluded devices Bastian Krause
  2021-05-03 10:37 ` [PATCH v2 1/2] scripts: imx-usb-loader: print excluded USB device message only on verbose Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Bastian Krause @ 2021-04-30 11:56 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, Bastian Krause

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>
---
Changes since (implicit) v1:
- added Ahmad's Reviewed-by
---
 scripts/imx/imx-usb-loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-03 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 11:56 [PATCH v2 1/2] scripts: imx-usb-loader: print excluded USB device message only on verbose Bastian Krause
2021-04-30 11:56 ` [PATCH v2 2/2] scripts: imx-usb-loader: print USB VID/PID of excluded devices Bastian Krause
2021-05-03 10:37 ` [PATCH v2 1/2] scripts: imx-usb-loader: print excluded USB device message only on verbose Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox