From patchwork Mon Apr 4 04:48:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 89577 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 73C10B6FA4 for ; Mon, 4 Apr 2011 14:49:24 +1000 (EST) Received: from localhost ([127.0.0.1]:33076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6bj7-0007vC-6c for incoming@patchwork.ozlabs.org; Mon, 04 Apr 2011 00:49:21 -0400 Received: from [140.186.70.92] (port=45171 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6bi5-0007v7-54 for qemu-devel@nongnu.org; Mon, 04 Apr 2011 00:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6bi3-0005Qy-PN for qemu-devel@nongnu.org; Mon, 04 Apr 2011 00:48:16 -0400 Received: from ozlabs.org ([203.10.76.45]:36640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6bi3-0005Qq-9Q for qemu-devel@nongnu.org; Mon, 04 Apr 2011 00:48:15 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 2151EB6FA4; Mon, 4 Apr 2011 14:48:12 +1000 (EST) From: David Gibson To: qemu-devel@nongnu.org Date: Mon, 4 Apr 2011 14:48:08 +1000 Message-Id: <1301892488-15114-1-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 1.7.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.10.76.45 Subject: [Qemu-devel] [PATCH] Fix non-portable format string in usb-ccid.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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..44156cc 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: %" 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,