summary refs log tree commit diff stats
path: root/hw/usb/ccid-card-passthru.c
diff options
context:
space:
mode:
authorAlex Chen <alex.chen@huawei.com>2020-11-19 02:57:51 +0000
committerGerd Hoffmann <kraxel@redhat.com>2021-01-22 14:51:35 +0100
commit268c02424b0b8078c15acdf73edbdeeb0dd80808 (patch)
tree42abbf12e3863e8c0511593805f17373e87bc74e /hw/usb/ccid-card-passthru.c
parenta3c27ea0344d3cc7295a5f0589d5514913ec1522 (diff)
downloadfocaccia-qemu-268c02424b0b8078c15acdf73edbdeeb0dd80808.tar.gz
focaccia-qemu-268c02424b0b8078c15acdf73edbdeeb0dd80808.zip
hw/usb: Fix bad printf format specifiers
We should use printf format specifier "%u" instead of "%d" for
argument of type "unsigned int".

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Message-id: 20201119025751.45750-1-alex.chen@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/ccid-card-passthru.c')
-rw-r--r--hw/usb/ccid-card-passthru.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c
index c27c602697..c1a90fcc7a 100644
--- a/hw/usb/ccid-card-passthru.c
+++ b/hw/usb/ccid-card-passthru.c
@@ -336,7 +336,7 @@ static void passthru_apdu_from_guest(
     PassthruState *card = PASSTHRU_CCID_CARD(base);
 
     if (!qemu_chr_fe_backend_connected(&card->cs)) {
-        printf("ccid-passthru: no chardev, discarding apdu length %d\n", len);
+        printf("ccid-passthru: no chardev, discarding apdu length %u\n", len);
         return;
     }
     ccid_card_vscard_send_apdu(card, apdu, len);