From patchwork Mon Apr 4 04:48:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix non-portable format string in usb-ccid.c Date: Sun, 03 Apr 2011 18:48:08 -0000 From: David Gibson X-Patchwork-Id: 89577 Message-Id: <1301892488-15114-1-git-send-email-david@gibson.dropbear.id.au> To: qemu-devel@nongnu.org At one point, usb-ccid.c attempts to use a %lX format specifier to print a uint64_t, which is only correct on some host platforms. This patch corrects the statement to use the stdint specified PRIX64 constant instead. Signed-off-by: David Gibson --- hw/usb-ccid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c index 723b2e3..44156cc 100644 --- a/hw/usb-ccid.c +++ b/hw/usb-ccid.c @@ -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: %" PRIX64 "\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,