[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH 1/3] elf-loader: warn about invalid endianess
From: |
Peter Maydell |
Subject: |
Re: [Qemu-trivial] [PATCH 1/3] elf-loader: warn about invalid endianess |
Date: |
Fri, 23 Jun 2017 18:11:03 +0100 |
On 23 June 2017 at 17:45, Philippe Mathieu-Daudé <address@hidden> wrote:
> fprintf(stderr) is how errors are reported in this file.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> hw/core/loader.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/core/loader.c b/hw/core/loader.c
> index f72930ca4a..094f24627f 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 endianess\n", filename);
"endianness" (two 'n's).
> ret = ELF_LOAD_WRONG_ENDIAN;
> goto fail;
> }
> --
> 2.13.1
thanks
-- PMM