From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55064 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6iwK-0007lB-E8 for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6iwE-0002T1-UC for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:31:27 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:49052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6iwE-0002Sp-QC for qemu-devel@nongnu.org; Mon, 04 Apr 2011 08:31:22 -0400 Received: by wwj40 with SMTP id 40so5925758wwj.10 for ; Mon, 04 Apr 2011 05:31:21 -0700 (PDT) From: Dmitry Eremin-Solenikov Date: Mon, 4 Apr 2011 16:31:21 +0400 Message-Id: <1301920281-16372-1-git-send-email-dbaryshkov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] Fix build error in usb-ccid code List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org W/o this fix I'm getting the following error: cc1: warnings being treated as errors hw/usb-ccid.c: In function ‘ccid_card_card_error’: hw/usb-ccid.c:1202:5: error: format ‘%lX’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ Signed-off-by: Dmitry Eremin-Solenikov --- hw/usb-ccid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c index 723b2e3..5c80cbd 100644 --- a/hw/usb-ccid.c +++ b/hw/usb-ccid.c @@ -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: %LX\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, -- 1.7.4.1