diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-15 10:15:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-15 10:15:49 +0100 |
commit | 45af01d16dbaabd918c141fcb7dcd7efeeac7c07 (patch) | |
tree | bf03eaa24235b903f357c3e89d15d043d53db28a /common/elf.c | |
parent | b4bea4a52101a01626667a625622e5415b868185 (diff) | |
download | barebox-45af01d16dbaabd918c141fcb7dcd7efeeac7c07.tar.gz barebox-45af01d16dbaabd918c141fcb7dcd7efeeac7c07.tar.xz |
bootm: Print which file cannot be opened
When opening the OS image fails we used to print a message *which* file
could not be opened. This message is no longer printed since we now fail
in read_file_2 when there is an error. Move the message in the
read_file_2 failure path to print it again. file_detect_type() needs no
handling for ret < 0, in case of failure it returns filetype_unknown
which is handled later, so we can remove the error handling there.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/elf.c')
0 files changed, 0 insertions, 0 deletions