Re: [U-Boot] [PATCHv2 4/8] mkenvimage: More error handling

2012-01-07 Thread Mike Frysinger
On Thursday 05 January 2012 13:44:55 David Wagner wrote: > --- a/tools/mkenvimage.c > +++ b/tools/mkenvimage.c > > datasize = strtol(optarg, NULL, 0); > - break; > + if (!errno) > + break; > + > +

[U-Boot] [PATCHv2 4/8] mkenvimage: More error handling

2012-01-05 Thread David Wagner
Verbosly fail if the target environment size or the padding byte are badly formated. Verbosly fail if something bad happens when reading from standard input. Signed-off-by: David Wagner --- tools/mkenvimage.c | 32 ++-- 1 files changed, 30 insertions(+), 2 deletion