Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp439416pxb; Wed, 22 Sep 2021 05:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygPjG50wSRkUuJFlZ32GGpDScZqk7gQ4GTfkVyyOb7b72GpxwJrjAXywmtWWNtBMtJvjSw X-Received: by 2002:a17:907:628d:: with SMTP id nd13mr41753350ejc.7.1632314607245; Wed, 22 Sep 2021 05:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632314607; cv=none; d=google.com; s=arc-20160816; b=S0VD38csXrfEmiTsz4Cfxzwvo0JPsrpbVbLv6y5/jdzqcFKFxvgF6r7KpHouS5O1sC iYZW+XEt2yKZkYo+9z8ZQiouwq3A2UaGFs3XdiBaextWHe4PxMk5MJT9OTZWgJE0srQ0 6Z4OBXsN0s5Z1mDD9omzwoht0aGBHc/povks6IPU9UdSF+iznTZdzbgw1+BVrHnm4JUU 6lGLzFf+uUbE79rajB5iZWl1W2A0oz86phys69sPNsgWGT8mBdgGz/Jj0fPli4GvgCnD y5lN6m2iGr5GWOUjn1Lc4lVlKMuJyQlFAoOODk9AY8FgOVpl8klgOOUfCtrz1jsRLepw xy7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=b7+4gom9m9S6go5lMDnC+DCOtP8uh4CKj1J2kvLmigE=; b=d+yR4+TyYgSP43kGo70ak3BGzpmcfsyln5r0oRixyRZlfD1vTc2Y/clHSus8787kpK RxeOexwL8bOXv767kMS2uQkNjcdXhVB1mVfyn9iRtibkVZLt1RRkLrkQwo07RufUZ8ND IslFDTL2lLGzO1t09GFaGeGx4fvtj/QOxfidXM0t4741XJyqooake37nUcVg0d02NIoA a4Ub3G6bjkCb1Aw9XTD1svNiMJn1ITlsulmf/r+lbfpYMxjg8RKzN9EszheXj65hyvTI gG0f7npfCId3QXOS/avOIOFoBczKpLaCT/+ZFZWNlqKwJwSHsauxc+mUcbB2gtxIR9hf PfTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si2618600ejk.613.2021.09.22.05.43.03; Wed, 22 Sep 2021 05:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236027AbhIVMme (ORCPT + 99 others); Wed, 22 Sep 2021 08:42:34 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:53428 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236023AbhIVMmd (ORCPT ); Wed, 22 Sep 2021 08:42:33 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Sep 2021 08:42:32 EDT Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id 580D91008CBC0; Wed, 22 Sep 2021 20:33:52 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id 428A3200B574E; Wed, 22 Sep 2021 20:33:52 +0800 (CST) X-Virus-Scanned: amavisd-new at Received: from proxy02.sjtu.edu.cn ([127.0.0.1]) by localhost (proxy02.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gJlAHgw_BhhY; Wed, 22 Sep 2021 20:33:52 +0800 (CST) Received: from guozhi-ipads.ipads-lab.se.sjtu.edu.cn (unknown [202.120.40.82]) (Authenticated sender: qtxuning1999@sjtu.edu.cn) by proxy02.sjtu.edu.cn (Postfix) with ESMTPSA id 750692008D5E6; Wed, 22 Sep 2021 20:33:44 +0800 (CST) From: Guo Zhi To: mike.marciniszyn@cornelisnetworks.com, dennis.dalessandro@cornelisnetworks.com, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Zhi Subject: [PATCH] infiniband hfi1: fix misuse of %x in ipoib_tx.c Date: Wed, 22 Sep 2021 20:33:41 +0800 Message-Id: <20210922123341.601450-1-qtxuning1999@sjtu.edu.cn> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pointers should be printed with %p or %px rather than cast to (unsigned long long) and printed with %llx. Change %llx to %p to print the pointer. Signed-off-by: Guo Zhi --- drivers/infiniband/hw/hfi1/ipoib_tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/ipoib_tx.c b/drivers/infiniband/hw/hfi1/ipoib_tx.c index e74ddbe4658..7381f352311 100644 --- a/drivers/infiniband/hw/hfi1/ipoib_tx.c +++ b/drivers/infiniband/hw/hfi1/ipoib_tx.c @@ -876,13 +876,13 @@ void hfi1_ipoib_tx_timeout(struct net_device *dev, unsigned int q) struct hfi1_ipoib_txq *txq = &priv->txqs[q]; u64 completed = atomic64_read(&txq->complete_txreqs); - dd_dev_info(priv->dd, "timeout txq %llx q %u stopped %u stops %d no_desc %d ring_full %d\n", + dd_dev_info(priv->dd, "timeout txq %p q %u stopped %u stops %d no_desc %d ring_full %d\n", (unsigned long long)txq, q, __netif_subqueue_stopped(dev, txq->q_idx), atomic_read(&txq->stops), atomic_read(&txq->no_desc), atomic_read(&txq->ring_full)); - dd_dev_info(priv->dd, "sde %llx engine %u\n", + dd_dev_info(priv->dd, "sde %p engine %u\n", (unsigned long long)txq->sde, txq->sde ? txq->sde->this_idx : 0); dd_dev_info(priv->dd, "flow %x\n", txq->flow.as_int); -- 2.33.0