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

Sascha Hauer s.hauer at pengutronix.de
Sun Mar 5 23:13:25 PST 2017


On Fri, Mar 03, 2017 at 11:38:41AM +0100, Oleksij Rempel wrote:
> 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(+)

Applied, thanks

Sascha

> 
> 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
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list