summary refs log tree commit diff stats
path: root/stubs/error-printf.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-04-17 21:06:29 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-04-17 21:21:49 +0200
commit3eb99edb4800831ed36fa38e095d3fe98b2c1124 (patch)
tree4210839b54556ee038b5ef0dc51510131976c0a8 /stubs/error-printf.c
parent6b3048cee0e0eccd27b62954ecc57c4a1bceb976 (diff)
downloadfocaccia-qemu-3eb99edb4800831ed36fa38e095d3fe98b2c1124.tar.gz
focaccia-qemu-3eb99edb4800831ed36fa38e095d3fe98b2c1124.zip
loader-fit: Wean off error_printf()
load_fit() reports errors with error_printf() instead of
error_report().  Worse, it even reports errors it actually recovers
from, in fit_cfg_compatible() and fit_load_fdt().  Messed up in
initial commit 51b58561c1d.

Convert the helper functions for load_fit() to Error.  Make sure each
failure path sets an error.

Fix fit_cfg_compatible() and fit_load_fdt() not to report errors they
actually recover from.

Convert load_fit() to error_report().

Cc: Paul Burton <pburton@wavecomp.com>
Cc: Aleksandar Rikalo <arikalo@wavecomp.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190417190641.26814-4-armbru@redhat.com>
Diffstat (limited to 'stubs/error-printf.c')
0 files changed, 0 insertions, 0 deletions