提交 c53c1258 编写于 作者: D David Gibson 提交者: Aurelien Jarno

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: NDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 d118aa6b
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册