2011/10/13 Benoît Canet <benoit.ca...@gmail.com>: > @@ -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