From 665df9010aa40d1e028d6ad5d3bdb4d9b0a3294c Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Thu, 27 Jul 2017 01:56:14 +0200 Subject: Revert "elf-loader: warn about invalid endianness" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts c8e1158cf611 "elf-loader: warn about invalid endianness" as it produces a useless message every time an LE kernel image is passed via -kernel on a ppc64-pseries machine. The pseries machine already checks for ELF_LOAD_WRONG_ENDIAN and tries with big_endian=0. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Aurelien Jarno Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yongbok Kim --- hw/core/loader.c | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/core') diff --git a/hw/core/loader.c b/hw/core/loader.c index c17ace0a2e..e5e8cbb638 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -480,7 +480,6 @@ 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; } -- cgit v1.2.3