From patchwork Tue Apr 1 22:14:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 27584 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D1F6E21137 for ; Tue, 1 Apr 2014 22:15:03 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf24661870vcb.11 for ; Tue, 01 Apr 2014 15:15:03 -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=Qu+nyjhbzoeMrHGh+XF4+jVTd/mCY6XOQ2tpPSvr8mE=; b=K1stkglcL+NUSBb7VaChwnX3N8LsN0y18EyD9nxBWLi3sd6sT7zlnQ0NmGxTsVjr3+ k498Ii6Fj95wP4jtrbF+BKJcpZhkf9OgqqfNA1wV11jyLjlbE/uWckl/aLp4Q4kmJOsb oPztL22GPZxtsBwnJX6d85nIankYFDIJt9q9fZcD7YMfF1LNTVJYwCEo7n7vIhMgi/dG GtgT+EICptywUlLOwjTLG/VmHxGcctnmMqWBwqblsZgBOye3yXs/id/R9vzVYt2gcctD tfLugmVKHZNyhpITRkiym/9Iwwix61g8Z2rXeA3LS7uc8QT3cTnO4bCT7eKcBJG4rSPW dFZQ== X-Gm-Message-State: ALoCoQnxbBxxwm7wZpwcgkpqjRZSU4DSmlYh9PXX3+BMvCN7MBxNJI6V4IOtPN6Cl3gcyg6NA/2z X-Received: by 10.224.167.8 with SMTP id o8mr14340044qay.0.1396390503551; Tue, 01 Apr 2014 15:15:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.231 with SMTP id h94ls161519qgd.61.gmail; Tue, 01 Apr 2014 15:15:03 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr13147718vdb.20.1396390503485; Tue, 01 Apr 2014 15:15:03 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id l4si3911215vch.162.2014.04.01.15.15.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 15:15:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so10877370vcb.32 for ; Tue, 01 Apr 2014 15:15:03 -0700 (PDT) X-Received: by 10.52.130.225 with SMTP id oh1mr26202850vdb.8.1396390503422; Tue, 01 Apr 2014 15:15:03 -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.12.8 with SMTP id v8csp273749vcv; Tue, 1 Apr 2014 15:15:03 -0700 (PDT) X-Received: by 10.66.148.134 with SMTP id ts6mr16877276pab.113.1396390500608; Tue, 01 Apr 2014 15:15:00 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id zm8si8806827pac.396.2014.04.01.15.14.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 01 Apr 2014 15:15:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WV6xL-0002KS-VA; Tue, 01 Apr 2014 23:14:55 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, "Michael S. Tsirkin" , "Dr. David Alan Gilbert" Subject: [PATCH v2 5/7] hw/net/stellaris_enet: Fix debug format strings Date: Tue, 1 Apr 2014 23:14:53 +0100 Message-Id: <1396390495-8908-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1396390495-8908-1-git-send-email-peter.maydell@linaro.org> References: <1396390495-8908-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: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 db6e43e..e818b9d 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;