[PATCH] scripts: bareboxcrc32 as host and target userspacetool

Sascha Hauer s.hauer at pengutronix.de
Wed Dec 4 11:16:04 EST 2013


On Wed, Dec 04, 2013 at 12:06:38AM +0100, Michael Grzeschik wrote:
> This patch adds the crc32 command to be build
> as host and optionally as target tool.
> 

This used to be:

> -	fd = open(filename, O_RDONLY);
> -	if (fd < 0) {
> -		printf("open %s: %s\n", filename, errno_str());
> -		return fd;
> -	}

And now is:

> +	fd = open(filename, O_RDONLY);
> +	if (fd < 0) {
> +		printf("open %s: %d\n", filename, errno);
> +		return fd;
> +	}

I changed it to:

		printf("open %s: %s\n", filename, strerror(errno));

Which works on Linux Userspace and barebox and prints strings instead of
numbers.

Sascha

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