Fix build error in usb-ccid code
PATCH 1/1 Fix build error in usb-ccid code
W/o this fix I'm getting the following error:
cc1: warnings being treated as errorshw/usb-ccid.c: In function ‘ccid_card_card_error’:hw/usb-ccid.c:1202:5: error: format ‘%lX’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’
--- hw/usb-ccid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/usb-ccid.c +1 -1
@@ -1199,7 +1199,7 @@ void ccid_card_card_error(CCIDCardState *card, uint64_t error) s->bmCommandStatus =COMMAND_STATUS_FAILED ; s->last_answer_error = error; -DPRINTF (s,1 ,"VSC_Error: %lX\n" , s->last_answer_error); +DPRINTF (s,1 ,"VSC_Error: %LX\n" , s->last_answer_error);/* TODO: these error's should be more verbose and propogated to the guest.*/ /* * We flush all pending answers on CardRemove message in ccid-card-passthru,
Signature · 1 line
1.7.4.1
Quoted 4 lines · Dmitry Eremin-Solenikov
W/o this fix I'm getting the following error:
cc1: warnings being treated as errorshw/usb-ccid.c: In function ‘ccid_card_card_error’:hw/usb-ccid.c:1202:5: error: format ‘%lX’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’
David Gibson posted a patch for that earlier this morning:
http://patchwork.ozlabs.org/patch/89577/
-- PMM
Quoted 9 lines · Peter Maydell
Quoted 5 lines · Dmitry Eremin-Solenikov
W/o this fix I'm getting the following error:
cc1: warnings being treated as errorshw/usb-ccid.c: In function ‘ccid_card_card_error’:hw/usb-ccid.c:1202:5: error: format ‘%lX’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’David Gibson posted a patch for that earlier this morning:
http://patchwork.ozlabs.org/patch/89577/
Sorry for the noise then.
Signature · 2 lines
With best wishes Dmitry