From patchwork Thu May 8 11:53:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 29831 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6B9AE20534 for ; Thu, 8 May 2014 11:53:16 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wm4sf11662794obc.6 for ; Thu, 08 May 2014 04:53:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=qY9LTQLTFsRInU2koEW25XhTc0l0Dy/gA0uzTZNx8SY=; b=kObT1trQjH7Szd+XHMkDOVrJHt/PVOhjQh2kGnkiYPfo2KDNA0UWBluQrB6dsjAU82 7OOu5KnfRaW+HEYzbqnr4xPR35kNRxipPKNX+kEy6//82aXEiGBlWMheX4UvttBYbSea U88J2IkAmVAjCbFnUSfycbTFu+bUkiTn8HDKCxKfcZrvyLHVFxFaLgpx+RV+oQUGlF1L XhaomSxBgKcBBCqWcO1dcwTWasAwBkxYq0rACVwVLcteqIZQdnHCffkqNe2AJ+tHhTcX xsOjvPI8FSL5Szv+xgrDrzonvxVTCbuEoETeNpAtFy9ogqT7ZKcj6QTs7zRsi5S8zdM3 f0eA== X-Gm-Message-State: ALoCoQm1KaUgb0XpJ4+uxhamBVUkY9RHrJGo5iaCU4FQ6Q8NsRjVybU59rBTSpcjOjJ6z3aAgaBi X-Received: by 10.182.95.68 with SMTP id di4mr1551551obb.4.1399549995858; Thu, 08 May 2014 04:53:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.100 with SMTP id o91ls4030388qgd.30.gmail; Thu, 08 May 2014 04:53:15 -0700 (PDT) X-Received: by 10.53.1.69 with SMTP id be5mr2043620vdd.27.1399549995782; Thu, 08 May 2014 04:53:15 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id tb2si137044vdc.57.2014.05.08.04.53.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 May 2014 04:53:15 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id sa20so3088053veb.37 for ; Thu, 08 May 2014 04:53:15 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr2530374vcb.0.1399549995724; Thu, 08 May 2014 04:53:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp392510vcb; Thu, 8 May 2014 04:53:15 -0700 (PDT) X-Received: by 10.112.87.226 with SMTP id bb2mr1129283lbb.81.1399549991752; Thu, 08 May 2014 04:53:11 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id sz4si509201lbb.162.2014.05.08.04.53.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 04:53:11 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WiMsu-0004sr-5h; Thu, 08 May 2014 12:53:08 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, "Michael S. Tsirkin" , "Dr. David Alan Gilbert" Subject: [PATCH v4 5/7] hw/net/stellaris_enet: Fix debug format strings Date: Thu, 8 May 2014 12:53:05 +0100 Message-Id: <1399549987-18729-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1399549987-18729-1-git-send-email-peter.maydell@linaro.org> References: <1399549987-18729-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Fix various debug format strings which were incorrect for the data type, so that building with debug enabled is possible. Signed-off-by: Peter Maydell Reviewed-by: Dr. David Alan Gilbert --- hw/net/stellaris_enet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c index 2079fc6..1cb95e0 100644 --- a/hw/net/stellaris_enet.c +++ b/hw/net/stellaris_enet.c @@ -161,7 +161,7 @@ static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, si return -1; } - DPRINTF("Received packet len=%d\n", size); + DPRINTF("Received packet len=%zu\n", size); n = s->next_packet + s->np; if (n >= 31) n -= 31; @@ -276,7 +276,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, switch (offset) { case 0x00: /* IACK */ s->ris &= ~value; - DPRINTF("IRQ ack %02x/%02x\n", value, s->ris); + DPRINTF("IRQ ack %02" PRIx64 "/%02x\n", value, s->ris); stellaris_enet_update(s); /* Clearing TXER also resets the TX fifo. */ if (value & SE_INT_TXER) { @@ -284,7 +284,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, } break; case 0x04: /* IM */ - DPRINTF("IRQ mask %02x/%02x\n", value, s->ris); + DPRINTF("IRQ mask %02" PRIx64 "/%02x\n", value, s->ris); s->im = value; stellaris_enet_update(s); break;