From patchwork Mon Apr 28 12:39:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 29232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE8B720553 for ; Mon, 28 Apr 2014 12:39:37 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf12645450ykr.10 for ; Mon, 28 Apr 2014 05:39:37 -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=EuMFOY3WUMxENsuk7WbBp7uHgiC6K92QKvdG8/IoK/zF9duODIUu5k/HuQUuukrE7L KbUJLa9M41jXYXHNt3D7RvunA0UjUBZaKmZ1f0RHkxGYMstIxuoCfY7SwlnUFSI9jhYE m7lcyQeIsllCrGuzh7vEb+HeyMpFISKzZGayvuPEn6dPweCGXVDm5Sk+lKDIXfN6zZQ8 cbFRCgxDvkNzWnTRgk0udWaGfkVI4V9OdzmkRsKMS4gA1kYePBHJYl63a1tW4Ex5/+ea nnu03rpE5/YzruFHx2Zxxj1a9V7t28oeOB/OA8v7l+gg1xpXtwncRHMyFEynl+UwHFJe /7bw== X-Gm-Message-State: ALoCoQmK137F31ndIQylP8V86cFyeY1hiMCcVjJAO8LCCtP+zqAeFSni9OQLGscNeEdWoBLy7+4N X-Received: by 10.236.206.15 with SMTP id k15mr8103201yho.44.1398688777620; Mon, 28 Apr 2014 05:39:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.66 with SMTP id g60ls2607760qgf.40.gmail; Mon, 28 Apr 2014 05:39:37 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr2940289vcn.26.1398688777470; Mon, 28 Apr 2014 05:39:37 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sw4si3581412vdc.66.2014.04.28.05.39.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 05:39:37 -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.176; Received: by mail-ve0-f176.google.com with SMTP id db11so7937337veb.35 for ; Mon, 28 Apr 2014 05:39:37 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr694575vcb.32.1398688777398; Mon, 28 Apr 2014 05:39:37 -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 ib8csp114316vcb; Mon, 28 Apr 2014 05:39:36 -0700 (PDT) X-Received: by 10.152.239.137 with SMTP id vs9mr28836lac.59.1398688773582; Mon, 28 Apr 2014 05:39:33 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id xl9si4983601lac.91.2014.04.28.05.39.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 05:39:33 -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 1WekqI-0006D6-RF; Mon, 28 Apr 2014 13:39:30 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, "Michael S. Tsirkin" , "Dr. David Alan Gilbert" Subject: [PATCH v3 5/7] hw/net/stellaris_enet: Fix debug format strings Date: Mon, 28 Apr 2014 13:39:28 +0100 Message-Id: <1398688770-23828-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1398688770-23828-1-git-send-email-peter.maydell@linaro.org> References: <1398688770-23828-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;