Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14913805ybl; Mon, 30 Dec 2019 20:37:44 -0800 (PST) X-Google-Smtp-Source: APXvYqz8dYA0VXVkiNla/1jNHydMTLopcYKmlPTQ8mGLOr07zpVeqyLHTq30NQIop5ONd//cT8qH X-Received: by 2002:a9d:4c94:: with SMTP id m20mr76485010otf.341.1577767064046; Mon, 30 Dec 2019 20:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577767064; cv=none; d=google.com; s=arc-20160816; b=MZxdDAu46O/ue55sCfVFlSmweh22dlX+3vaCgkJ71KFRIutE6qTFpRT5Gt8syL+fh6 bN3Orzh1zNDGPq9vvp+OIGfh/wodlfjXv+4ReIWoySSzNxx26R7tpP8RaGccXxmeL1uR +2GdJbDM3e3WcdA69BryNGHRse2WBjJBnSoW+1bAxdCr89vJyiPUDKqjya4eqzYfRBtb aPff7uPbXngZ4vy6dUnphqSGFvhxDpXnhaB7BMqpEI/4WMijwSyEjwo8oaqHK/YW3Zgx 0fXds9DYNmJKghYDfdUR/J45t4TTDu040RYhGAwz2zKdVO2C5EGoKngS5XXmMnSLyNVR Sa7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HSpiwI9s4O/EziRMdZMFTUugUs0mUBaOxkNkmeopwNQ=; b=XYs/P5b3IlLX/g7YFCntGt3no5GWafDKyZa1mw2TsLztdlekY82vgtdgeFMYcJTlwy AwGCt48hJknEHEcbmLFAWD0JlwoV8SLZnNgv4+1nlc68BoaJQvPS3zu94u5Aw3wEgEUr qCip6ranE4kKxwjhk+SFhS85VS2h/yl2XI91zWErVK20wEUd8Hc/L+nD9EYavpIQP/EC Vn+uMQeBygndXye2m7rPwvzNiLluZrL7y0B+70WP2UhFfVE2/1SgXSRD11JUaDBr9GkA lcPXJTQAbY2RfjFh8o2FCA8Q49orATFWR1HdK/AQnrQ2XLCqaGlg4WzHN1EjplcEmeNk B+ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=iUYw0o7+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 200si22010516oii.156.2019.12.30.20.37.31; Mon, 30 Dec 2019 20:37:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=iUYw0o7+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbfLaEfk (ORCPT + 99 others); Mon, 30 Dec 2019 23:35:40 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36159 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbfLaEfk (ORCPT ); Mon, 30 Dec 2019 23:35:40 -0500 Received: by mail-lj1-f193.google.com with SMTP id r19so35259112ljg.3 for ; Mon, 30 Dec 2019 20:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HSpiwI9s4O/EziRMdZMFTUugUs0mUBaOxkNkmeopwNQ=; b=iUYw0o7+XJOUGoTvTe6bhrXu2hXu0zjKIVy95hfIrqSzkYxXP7ly103cbFGxcPcLgU +MzxlfrjcEKFPApcxeRRgPtDSjwji5OHjgI4vc4QQLirOEBMlfWcqtkG3yrjSbRhK997 JMghloI2Jug35QlDTqCK1tX4qTVBH5k1Z30DtEdfG1Xi1XMnesKagvC6fbCNRL9W5j+I vfvdqe3neE1R/pGmQQrRojesvxzVbrqMxWhGeHALwVLnSVSDDtH/Ndum1ZyPoJa7sSQ8 3WOYVYGJtngHpLDFZPt5yOH1V9wvjfw/x2Cekhb2+Q8iosMuKTz2WBvWOm3ym/xwVmDO VTHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HSpiwI9s4O/EziRMdZMFTUugUs0mUBaOxkNkmeopwNQ=; b=BeKtJhudQq8uJ2mjK0Fs5pzvVXEv1uoxMRoMlF7QxGTdIQ7RR9L7FgIH9P/WEA3Goq JI6rrNkXxHtssPDI57frf09b7XRrLVvx86RbnFuFbfF3X5cc0ubC2hu/tDIgeMYtJvnT 5AJM5yv0dUXNC05vsROVKxbnyda7eMJ3qwai98sPPe3RAlgP7SHnkd+recpt8n1o9Dy3 dXzBu+5U9jbJUGpxJnzVsqjAN1F/WOfslFs15pCGPqDvwGlXTcCnEWB85W5g+Gcbajxv j4YtnZqzo68BAa0JU7Tjggp9gggpZWNxBzSzwcDBvaUD0KOgTZDKA521HXi3cfsDz05X /4dg== X-Gm-Message-State: APjAAAXH0i+q3yoSOyAZRxw+QeZxCuDBE2xHAdxyOytJR4W1FHghuzp2 DhLfbTl1WNUMAlA2Syp2c8li4F5Zzb3e52w+Yii5CA== X-Received: by 2002:a2e:9a51:: with SMTP id k17mr38588764ljj.206.1577766937915; Mon, 30 Dec 2019 20:35:37 -0800 (PST) MIME-Version: 1.0 References: <20191220001517.105297-1-olof@lixom.net> In-Reply-To: From: Saeed Mahameed Date: Mon, 30 Dec 2019 20:35:27 -0800 Message-ID: Subject: Re: [PATCH] net/mlx5e: Fix printk format warning To: Olof Johansson Cc: Joe Perches , Saeed Mahameed , Leon Romanovsky , Network Development , RDMA mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 21, 2019 at 1:19 PM Olof Johansson wrote: > > On Thu, Dec 19, 2019 at 6:07 PM Joe Perches wrote: > > > > On Thu, 2019-12-19 at 16:15 -0800, Olof Johansson wrote: > > > Use "%zu" for size_t. Seen on ARM allmodconfig: > > [] > > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wq.c b/drivers/net/ethernet/mellanox/mlx5/core/wq.c > > [] > > > @@ -89,7 +89,7 @@ void mlx5_wq_cyc_wqe_dump(struct mlx5_wq_cyc *wq, u16 ix, u8 nstrides) > > > len = nstrides << wq->fbc.log_stride; > > > wqe = mlx5_wq_cyc_get_wqe(wq, ix); > > > > > > - pr_info("WQE DUMP: WQ size %d WQ cur size %d, WQE index 0x%x, len: %ld\n", > > > + pr_info("WQE DUMP: WQ size %d WQ cur size %d, WQE index 0x%x, len: %zu\n", > > > mlx5_wq_cyc_get_size(wq), wq->cur_sz, ix, len); > > > print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, wqe, len, false); > > > } > > > > One might expect these 2 outputs to be at the same KERN_ too. > > One is KERN_INFO the other KERN_WARNING > > Sure, but I'll leave that up to the driver maintainers to decide/fix > -- I'm just addressing the type warning here. Hi Olof, sorry for the delay, and thanks for the patch, I will apply this to net-next-mlx5 and will submit to net-next myself. we will fixup and address the warning level comment by Joe. > > > -Olof