Message ID | 1467560446-10628-12-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 655cc69655f058e0354d5db4179c92d2ac0081ba |
Delegated to: | Tom Rini |
Headers | show |
Hi Simon, On Sun, Jul 3, 2016 at 8:40 AM, Simon Glass <sjg@chromium.org> wrote: > The error code may provide useful information for debugging. Add it to the > error string. > > Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Teddy Reed <teddy.reed@gmail.com> > --- > > tools/fit_image.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/fit_image.c b/tools/fit_image.c > index 58aa8e2..f471982 100644 > --- a/tools/fit_image.c > +++ b/tools/fit_image.c > @@ -650,8 +650,8 @@ static int fit_handle_file(struct image_tool_params *params) > } > > if (ret) { > - fprintf(stderr, "%s Can't add hashes to FIT blob\n", > - params->cmdname); > + fprintf(stderr, "%s Can't add hashes to FIT blob: %d\n", > + params->cmdname, ret); > goto err_system; > } > > -- > 2.8.0.rc3.226.g39d4020 > Simple change, should help debugging/dev! -Teddy
On Sun, Jul 03, 2016 at 09:40:43AM -0600, Simon Glass wrote: > The error code may provide useful information for debugging. Add it to the > error string. > > Signed-off-by: Simon Glass <sjg@chromium.org> > Reviewed-by: Teddy Reed <teddy.reed@gmail.com> Applied to u-boot/master, thanks!
diff --git a/tools/fit_image.c b/tools/fit_image.c index 58aa8e2..f471982 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -650,8 +650,8 @@ static int fit_handle_file(struct image_tool_params *params) } if (ret) { - fprintf(stderr, "%s Can't add hashes to FIT blob\n", - params->cmdname); + fprintf(stderr, "%s Can't add hashes to FIT blob: %d\n", + params->cmdname, ret); goto err_system; }
The error code may provide useful information for debugging. Add it to the error string. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/fit_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)