From: Philippe Mathieu-Daudé Date: Fri, 23 Jun 2017 16:45:55 +0000 (-0300) Subject: elf-loader: warn about invalid endianness X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c8e1158cf611;p=qemu.git elf-loader: warn about invalid endianness fprintf(stderr) is how errors are reported in this file. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Michael Tokarev --- diff --git a/hw/core/loader.c b/hw/core/loader.c index f72930ca4a..3409cc6d1d 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -478,6 +478,7 @@ int load_elf_ram(const char *filename, } if (target_data_order != e_ident[EI_DATA]) { + fprintf(stderr, "%s: wrong endianness\n", filename); ret = ELF_LOAD_WRONG_ENDIAN; goto fail; }