[PATCH] commands: flash: add missing newlines to error messages

Sascha Hauer s.hauer at pengutronix.de
Fri Dec 14 02:44:01 EST 2012


On Thu, Dec 13, 2012 at 04:46:46PM +0100, Wolfram Sang wrote:
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
> ---

Applied, thanks

Sascha


>  commands/flash.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/commands/flash.c b/commands/flash.c
> index b1673de..d22d6a0 100644
> --- a/commands/flash.c
> +++ b/commands/flash.c
> @@ -54,7 +54,7 @@ static int do_flerase(int argc, char *argv[])
>  
>  	fd = open(filename, O_WRONLY);
>  	if (fd < 0) {
> -		printf("open %s: %s", filename, errno_str());
> +		printf("open %s: %s\n", filename, errno_str());
>  		return 1;
>  	}
>  
> @@ -125,7 +125,7 @@ static int do_protect(int argc, char *argv[])
>  
>  	fd = open(filename, O_WRONLY);
>  	if (fd < 0) {
> -		printf("open %s: %s", filename, errno_str());
> +		printf("open %s: %s\n", filename, errno_str());
>  		return 1;
>  	}
>  
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> 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