aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2011-04-04 14:48:08 +1000
committerAurelien Jarno <aurelien@aurel32.net>2011-04-04 14:43:16 +0200
commitc53c1258a455cbe9afd7e5c572578646df30d438 (patch)
treeb0e212d06323a855f167f15b39e713756ed38ea3 /hw
parentd118aa6b4a8fecb1c5a4747fd0f88a015883bf85 (diff)
Fix non-portable format string in usb-ccid.c
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 <david@gibson.dropbear.id.au> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb-ccid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index 723b2e325f..44156cc1d8 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,