mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
d118aa6b4a
commit
c53c1258a4
|
@ -1199,7 +1199,7 @@ void ccid_card_card_error(CCIDCardState *card, uint64_t error)
|
||||||
|
|
||||||
s->bmCommandStatus = COMMAND_STATUS_FAILED;
|
s->bmCommandStatus = COMMAND_STATUS_FAILED;
|
||||||
s->last_answer_error = error;
|
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.*/
|
/* 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,
|
* We flush all pending answers on CardRemove message in ccid-card-passthru,
|
||||||
|
|
Loading…
Reference in New Issue