Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4764131ybl; Sat, 21 Dec 2019 13:43:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwS1d+c/UWZD7DzYUHGO24mB6CWQ2NSbE1H61oFOuWC9uevrpOh3lOvFQobIRHNh12P8olj X-Received: by 2002:a9d:6e98:: with SMTP id a24mr9588703otr.109.1576964638671; Sat, 21 Dec 2019 13:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576964638; cv=none; d=google.com; s=arc-20160816; b=E2pgnZ3bbNrGpLnVcPeXUE4XWmGXH5ZI74Cm+PaugK/DQLdRYZwzM1i9AfMF0va/Z/ EXwsv9OLLwWD9OJqOMl4X1APHkmHT9Xo7nxKw+m+YQ4uHVPxkAe6MXccFdR7wErHxSnJ bcvypqlFp02iyY9rKAx3iDndU4a7H6yo3ayjhFw/NTwrTrGHJX2eqIFKkm+j54GzCcFr 6C/LDAt29xR8TjMufc/H3snKtXtBTT8bcGoSYFJfmqz4y6hDlEMhoDJI53nJ+rTgRJng wQ498iTWVjIYSlpiqhw3OBgd6QYNDj7PPDAhy/NN/sF2WC0RnYaf39FtbnpRMdBypanD l3hQ== 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=ryiHDUuNAqP4QzqBSFVAqfWHx+GwcCe8K4qYuGFe+7I=; b=MN/owWbFrOheFsbYvw9AtMR91GC6N40TftimJ2GklBEkvJnhl5gyYa/O98zmNyz59g kOp7ZUDDnGjWoPoOJR4mzIw9YbzYpHs6/4ScgjkyUNpCppHKwQiBZfydlOQ/SzPS5ZVS 0MR664JF/F07ZwDLQ/xdra+9ceb+qq8FR8jrljPRmG7koC9jHpczdYW3iBSx1HqWn6Gc Qlt22Jqvhoqd1a/Pg6Qu5lNsU05Sr+BVOawqyF5mKnJgp577zp8BD9/AIgNEukpLTDiC 4spPKDvUPZ4p1G0AfWVWLuoxUUwt9bayYYaz58b5sa8rlSIoKCMOPu1X2bxMJc651A7N L7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=IofBVGqC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si6908461ois.76.2019.12.21.13.43.13; Sat, 21 Dec 2019 13:43:58 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=IofBVGqC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbfLUVTw (ORCPT + 99 others); Sat, 21 Dec 2019 16:19:52 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:35445 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfLUVTw (ORCPT ); Sat, 21 Dec 2019 16:19:52 -0500 Received: by mail-il1-f195.google.com with SMTP id g12so11034001ild.2 for ; Sat, 21 Dec 2019 13:19:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ryiHDUuNAqP4QzqBSFVAqfWHx+GwcCe8K4qYuGFe+7I=; b=IofBVGqCwyHx05OokV0/Mi+GsZfFqUWPEqHXlE8SD7ljZnKjNn33dyid4kaub9mkZW Lh6gjQaG3b0cWchmJgUviTVtAwH/tp2kfExkrCyISdbITfud9qZ8MoOIJ4CupFu9B4QY A7LU+eXgYy/ZTnxP5ZYSXCLIBo5iJmdxSQYbHTxmH2N/nlS5b/2D7e/72bvp6pBhF/eL a5OuFiIu9F61BhYaMjmBov3wTOsqld80xy8q0OAxS3MS9tJxxureDAyiSOE02absgiUX wgCfUAYXeQw9C4PXaKZ8bi7aJ8xo1j0ZKQd3TbXXdGnH91ZSX1hd5yfG13/qRZDISFMJ JbPg== 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=ryiHDUuNAqP4QzqBSFVAqfWHx+GwcCe8K4qYuGFe+7I=; b=m7bR6BBthkXfjvH81qGZ512xalcQc7k1ANlaGTECM+jv8B1PNdkBR2SdwHBY76EKY9 A8r4ehwQIbP0HmfeL9g8Pr3tyzaVhT81IfcwufONysVRXV/DR7CK+u9LEurQaArdfBM6 IfwkGsdbAj68Nxuj682DTXc0tmkdKeabQyFgLr8OXItvyRPAePFn+JR5zOqq1Qnn9YpA zqnL+WI2UrZrnjJdjXjb3cvGvBcmVYJIyPiZbWWea2bhNl71YKBfSEHQNxJT1tjWFA5L RfoF2bfTzkQ8fpP7ygZKp0dUnjWau+1gg9qyVCmejLA7ifdequXINpuGul2k+4NwQcYA wStg== X-Gm-Message-State: APjAAAXK366kpUBklet+5vCbuUNM8akAzuIAgL7vV2hMumA/nsZ51Vn0 hMxsmLrvf9Z1IxfTtJP0s8Z5MuDiO+3VxfSwzFeY/g== X-Received: by 2002:a92:afc5:: with SMTP id v66mr17505932ill.123.1576963191681; Sat, 21 Dec 2019 13:19:51 -0800 (PST) MIME-Version: 1.0 References: <20191220001517.105297-1-olof@lixom.net> In-Reply-To: From: Olof Johansson Date: Sat, 21 Dec 2019 13:19:40 -0800 Message-ID: Subject: Re: [PATCH] net/mlx5e: Fix printk format warning To: Joe Perches Cc: Saeed Mahameed , Leon Romanovsky , Network Development , linux-rdma@vger.kernel.org, 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 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. -Olof