]> Git Repo - qemu.git/commitdiff
ccid-card-passthru: fix regression in realize()
authorMarc-André Lureau <[email protected]>
Tue, 15 May 2018 15:30:39 +0000 (17:30 +0200)
committerGerd Hoffmann <[email protected]>
Fri, 18 May 2018 07:41:17 +0000 (09:41 +0200)
Since cc847bfd16d894fd8c1a2ce25f31772f6cdbbc74, CCID card-passthru
fails to intialize, because it changed a debug line to an error,
probably by mistake. Change it back to a DPRINTF debug.

(solves Boxes creating VM with smartcard passthru failing to start)

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20180515153039[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/ccid-card-passthru.c

index 7684db0cb370f8c93c56fa643a025a0a05b29cfb..25fb19b0d716170c4604b3bc6b470d34f9f060b8 100644 (file)
@@ -345,7 +345,7 @@ static void passthru_realize(CCIDCardState *base, Error **errp)
     card->vscard_in_pos = 0;
     card->vscard_in_hdr = 0;
     if (qemu_chr_fe_backend_connected(&card->cs)) {
-        error_setg(errp, "ccid-card-passthru: initing chardev");
+        DPRINTF(card, D_INFO, "ccid-card-passthru: initing chardev");
         qemu_chr_fe_set_handlers(&card->cs,
             ccid_card_vscard_can_read,
             ccid_card_vscard_read,
This page took 0.026397 seconds and 4 git commands to generate.