From patchwork Fri Oct 26 06:10:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 194375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 36B202C009A for ; Fri, 26 Oct 2012 17:11:10 +1100 (EST) Received: from localhost ([::1]:49749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRd8O-0003OJ-B4 for incoming@patchwork.ozlabs.org; Fri, 26 Oct 2012 02:11:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRd7l-0001t7-4v for qemu-devel@nongnu.org; Fri, 26 Oct 2012 02:10:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRd7k-0006k3-5L for qemu-devel@nongnu.org; Fri, 26 Oct 2012 02:10:29 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:48841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRd7j-0006Vu-V2 for qemu-devel@nongnu.org; Fri, 26 Oct 2012 02:10:28 -0400 Received: by mail-pa0-f45.google.com with SMTP id fb10so1626410pad.4 for ; Thu, 25 Oct 2012 23:10:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=DmmrqsB+qH8+bjAb3Zqcvh+V3FzM5CxnVvGJJ9BFZfE=; b=RGbmXpbs3tnePU/qn4RamYA367ogdFMdRR9OqBBZ75VXzPnjQmc+jIrz/KNElvN+AN U3lqia37d/SATAV+GrBuiiHmXwznEfkwlTBlHepKANSxkU2/ET+jPSw6zeRJYZqoFRRo ZYdr1UDxkIAD4E1IUgeozgjbMCTf31DK+h4ZgmJPLAibLrteQjaGB3/DBytH7HCfvnxN 2tMBr17uv0G3i/xJjlW+lUwggJEWAJeCB/Zc0L0GNQBlaQQUM4U9fceFcGUKV2MXWzWt AMIxnBL3ak2Vj0DZuffuXAtVMRk3d9lZutcniHRTQcPZAm5mD9BYep3zj+4W/2T2s1W0 r4Yg== Received: by 10.68.195.195 with SMTP id ig3mr67403256pbc.108.1351231827687; Thu, 25 Oct 2012 23:10:27 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id a4sm128116pax.12.2012.10.25.23.10.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 23:10:27 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Fri, 26 Oct 2012 16:10:01 +1000 Message-Id: <7f011a84c5f76d90e8b292534bca9553ef77a467.1351231433.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlxM9zyadHt33uQBuQSrMtXdkqxe5JEClM6mHhscL1zTtPMRioAJO/hIchGMbQb5e6wRZd8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.45 Cc: vineshp@xilinx.com, peter.maydell@linaro.org, Peter Crosthwaite , john.williams@xilinx.com, pbonzini@redhat.com, edgar.iglesias@gmail.com Subject: [Qemu-devel] [PATCH v3 4/4] pflash_cfi01: Fix debug mode printfery X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This DPRINTF was throwing a warning due to a missing cast. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell --- hw/pflash_cfi01.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index d30d43c..7d040b5 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -182,7 +182,8 @@ static uint32_t pflash_read (pflash_t *pfl, hwaddr offset, DPRINTF("%s: Device ID Code %04x\n", __func__, ret); break; default: - DPRINTF("%s: Read Device Information boff=%x\n", __func__, boff); + DPRINTF("%s: Read Device Information boff=%x\n", __func__, + (unsigned)boff); ret = 0; break; }