Fix non-portable format string in usb-ccid.c
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 4 Apr 2011 04:48:08 +0000 (14:48 +1000)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 4 Apr 2011 12:43:16 +0000 (14:43 +0200)
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>
hw/usb-ccid.c

index 723b2e325f7572196deafbcf0349dd2dbe79603b..44156cc1d8d3de24d5923c62a395675a030b9076 100644 (file)
@@ -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,