From patchwork Mon Nov 28 18:13:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 9449875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E737600CB for ; Mon, 28 Nov 2016 18:14:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 062AC27FA6 for ; Mon, 28 Nov 2016 18:14:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF35E27FAD; Mon, 28 Nov 2016 18:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A355C27FA6 for ; Mon, 28 Nov 2016 18:14:37 +0000 (UTC) Received: from localhost ([::1]:60460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBQRo-0003og-LG for patchwork-qemu-devel@patchwork.kernel.org; Mon, 28 Nov 2016 13:14:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBQR2-0003Z2-OM for qemu-devel@nongnu.org; Mon, 28 Nov 2016 13:13:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBQR1-0006v2-Vb for qemu-devel@nongnu.org; Mon, 28 Nov 2016 13:13:48 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:35241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBQQy-0006u6-41; Mon, 28 Nov 2016 13:13:44 -0500 Received: by mail-pg0-x243.google.com with SMTP id p66so13765589pga.2; Mon, 28 Nov 2016 10:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GGhPWpzGBnAkCl0D02QZvu3zV6sy94ZrUezdEixvfOs=; b=bI/3I3Ylm2qNqYQGvg2jvosKv54tT+ev+0WsAlNDzG+1HcONGjV1bxE0i4Pngs3dvs PwbWt4dqx/9cR79np6gQzg4KT8Ye/ILja60Kp7L2sVXzO+qZg6he7l9mKSbFYlTl6lZ+ b+PGi2142JzAYOv0Zu3dRBMpPe4gF784jhJrt7gfN8karcVzLWBHdZTpmh5UaF5bF5xm ++Cp1CXqzki2Rc9adpbrGfaFz2xekmiAsssEBh8KTcFlPpN51cXb5Dgw8OaUkN/prTBF r1DptCrSbulc9lIGXECO2CQVBQuMmvYmfVanhBFUUOvETSY2XQhb+SzziLy9aqTXmv0J wI3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GGhPWpzGBnAkCl0D02QZvu3zV6sy94ZrUezdEixvfOs=; b=LDkF8bzgFRCAWVuT8/OM5JHTmhm9deFn2XOIw1dQgViXFR4vK0keHowBg1vBpc3M2C se5368eDf/OfocOtcse4RoNLw5n8Wi67hdvRUcg8ML2a5efGHPPaU3lJtToeYFGrRI80 x7l8dBVRKZzxfDwlQ+3D5C+HuTL60uOC8FHGVEsKTVcBt1bdC5ZM6zpJIfC6Uz500Q6n /UArUX14KVQ4NMCZ+Fe8eOdEnCR8JUq/Vbnecu9a96F5qkokA/FnPjOxp/s2HagACAH0 iIO53TB0GIVkKOXI6vJpdPTCl5VA2bh0uzXIpKr5qvC6vTE8JTspjOK94uRmSenDbZ3v pFSg== X-Gm-Message-State: AKaTC01oEYzBmr1sT8aKEcnH+Yd9EbhqkTcGEugpWCJAsusruxudZhbhN+N06k5ZycOMDw== X-Received: by 10.84.217.203 with SMTP id d11mr52623003plj.164.1480356822507; Mon, 28 Nov 2016 10:13:42 -0800 (PST) Received: from squirtle.localdomain.andrews-space.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id s2sm88872688pfi.10.2016.11.28.10.13.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 10:13:41 -0800 (PST) From: Andrey Smirnov To: qemu-ppc@nongnu.org Date: Mon, 28 Nov 2016 10:13:15 -0800 Message-Id: <1480356795-8043-2-git-send-email-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1480356795-8043-1-git-send-email-andrew.smirnov@gmail.com> References: <1480356795-8043-1-git-send-email-andrew.smirnov@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH 2/2] fsl_etsec: Fix various small problems in hexdump code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: scottwood@freescale.com, Andrey Smirnov , jasowang@redhat.com, qemu-devel@nongnu.org, agraf@suse.de Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix various small problems in hexdump code, such as: - Reference to non-existing field etsec->nic->nc.name is replaced with nc->name - Type mismatch warnings Signed-off-by: Andrey Smirnov --- hw/net/fsl_etsec/etsec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index b5c777f..1093d8b 100644 --- a/hw/net/fsl_etsec/etsec.c +++ b/hw/net/fsl_etsec/etsec.c @@ -348,8 +348,8 @@ static ssize_t etsec_receive(NetClientState *nc, eTSEC *etsec = qemu_get_nic_opaque(nc); #if defined(HEX_DUMP) - fprintf(stderr, "%s receive size:%d\n", etsec->nic->nc.name, size); - qemu_hexdump(buf, stderr, "", size); + fprintf(stderr, "%s receive size:%zd\n", nc->name, size); + qemu_hexdump((void *)buf, stderr, "", size); #endif /* Flush is unnecessary as are already in receiving path */ etsec->need_flush = false;