qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 6/7] stellaris: convert adc to memory API


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 6/7] stellaris: convert adc to memory API
Date: Mon, 17 Oct 2011 15:07:45 +0100

2011/10/13 Benoît Canet <address@hidden>:
> @@ -1054,7 +1056,7 @@ static void stellaris_adc_write(void *opaque, 
> target_phys_addr_t offset,
>             return;
>         case 0x04: /* SSCTL */
>             if (value != 6) {
> -                hw_error("ADC: Unimplemented sequence %x\n",
> +                hw_error("ADC: Unimplemented sequence %lx\n",
>                           value);
>             }
>             s->ssctl[n] = value;

This doesn't compile on a 32 bit box:

hw/stellaris.c: In function 'stellaris_adc_write':
hw/stellaris.c:1060: error: format '%lx' expects type 'long unsigned
int', but argument 2 has type 'uint64_t'

You need to use "ADC: Unimplemented sequence %" PRIx64 "\n"
(watch the quotes).

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]