mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] scripts: bareboxcrc32 as host and target userspacetool
Date: Wed, 4 Dec 2013 17:16:04 +0100	[thread overview]
Message-ID: <20131204161604.GO24559@pengutronix.de> (raw)
In-Reply-To: <1386111998-15579-1-git-send-email-m.grzeschik@pengutronix.de>

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2013-12-04 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03 23:06 Michael Grzeschik
2013-12-04 10:38 ` Alexander Aring
2013-12-04 16:17   ` Sascha Hauer
2013-12-04 16:16 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131204161604.GO24559@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=m.grzeschik@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox