[Top][All Lists]
[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
- Re: [Qemu-devel] [PATCH 2/7] integratorcp: convert icp pic to memory API, (continued)
- [Qemu-devel] [PATCH 4/7] stellaris: convert sys to memory API, Benoît Canet, 2011/10/13
- [Qemu-devel] [PATCH 3/7] integratorcp: convert control to memory API, Benoît Canet, 2011/10/13
- [Qemu-devel] [PATCH 5/7] stellaris: convert i2c to memory API, Benoît Canet, 2011/10/13
- [Qemu-devel] [PATCH 7/7] stellaris: convert gptm to memory API, Benoît Canet, 2011/10/13
- [Qemu-devel] [PATCH 6/7] stellaris: convert adc to memory API, Benoît Canet, 2011/10/13
- Re: [Qemu-devel] [PATCH 6/7] stellaris: convert adc to memory API,
Peter Maydell <=