Re: [U-Boot] [PATCHv2 4/8] mkenvimage: More error handling
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
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