Re: [PATCH] scripts: bareboxcrc32 as host and target userspacetool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |

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




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux