From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ckmq2-0003Ob-VY for barebox@lists.infradead.org; Mon, 06 Mar 2017 07:13:49 +0000 Date: Mon, 6 Mar 2017 08:13:25 +0100 From: Sascha Hauer Message-ID: <20170306071325.334zkyewmcjau6er@pengutronix.de> References: <20170303103841.11783-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170303103841.11783-1-o.rempel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] scripts: imx imx-usb-loader: warn if device was excluded by path option To: Oleksij Rempel Cc: barebox@lists.infradead.org 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 > --- > 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@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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox