Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2941413pxb; Fri, 8 Oct 2021 20:05:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5riNIUdioBUM1AMS9Z0j184ZmGasseoB96BY+5r7sa2NMeM/hOIHn0tWg/55+zMs9CoBT X-Received: by 2002:a50:d511:: with SMTP id u17mr20208943edi.105.1633748715408; Fri, 08 Oct 2021 20:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633748715; cv=none; d=google.com; s=arc-20160816; b=0Kn/VkOBPMOugr+qqLOszIIUecNH/nZwnEwGbKc1EJAZbkxrrMYyF0ggUuIdiKmi91 GqZZrUEYRJpRTmyQfjjmccvRivFEZhHW3pvNHedA3YTaETz9omZJIj5XiIICCt6jo1lm s8UntJw1PMcDmOyfFxJyl5ixidpvlz2tFjY5EbqWQtfvbEHD+f+2YQr+nRbXn4pDmZes K6qrsXr8qQE2KSxxlDeV5Xuqd0cJ3xmUiQA4QZ+WKeNjTK56VSxvE+US6lUN+WBlcyZ0 EAcQcDgShao8yw1Erqt3uTpkVRuKAVBBDwpSysSuXeMBbJJ/RZIfHT1uXCcyjqiCeQuY lDuw== 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=SpB7u90MhZfugG+rLHcja4ysI/zODy2T84mGM2zdaYk=; b=v0uBUYvkxkx+ADfYarBlRSDaD54ij98lxVTPsj6ntkwEAOHljfQX70yWOVDahD4ntm VZtRv1nMY1v9jSall3DuWgULbtalixXtXXSfTMjM7ngJVLt7MsYZhWi94wG4xDv7pfRW NNA1P2G7WU85czPMqU7N3Ym9QJN3w7exqfDgmkZI5gArfnS2Qmbs9ZDGRV/5rW4K5Dsi yEUjzTzg9UZkShPZTJPwUJ1CY+m3734yX5hfCcIgxXihr5SkmxLLpBKMy4BPlZ1w5Ip4 34lcrfm9UapD8wrQeNGMTb1cn1h4OPheXM0xUeIB8OZMVkqXHSqE4pPRFecVG0MkQaF+ cj1A== 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 o6si2009777edi.516.2021.10.08.20.04.51; Fri, 08 Oct 2021 20:05:15 -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 S232341AbhJIDFP (ORCPT + 99 others); Fri, 8 Oct 2021 23:05:15 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:42972 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbhJIDFO (ORCPT ); Fri, 8 Oct 2021 23:05:14 -0400 Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id C3FF11008B38A; Sat, 9 Oct 2021 11:03:15 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id AE0B9200C082A; Sat, 9 Oct 2021 11:03:15 +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 ceEVCXZTXeQJ; Sat, 9 Oct 2021 11:03:15 +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 202E0200C02C2; Sat, 9 Oct 2021 11:03:00 +0800 (CST) From: Guo Zhi To: Lee Duncan , Chris Leech , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Guo Zhi , open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi scsi_transport_iscsi.c: fix misuse of %llu in scsi_transport_iscsi.c Date: Sat, 9 Oct 2021 11:02:54 +0800 Message-Id: <20211009030254.205714-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 %llu. Change %llu to %p to print the pointer into sysfs. Signed-off-by: Guo Zhi --- drivers/scsi/scsi_transport_iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 922e4c7bd88e..7d6a570ebf48 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -129,8 +129,8 @@ show_transport_handle(struct device *dev, struct device_attribute *attr, if (!capable(CAP_SYS_ADMIN)) return -EACCES; - return sysfs_emit(buf, "%llu\n", - (unsigned long long)iscsi_handle(priv->iscsi_transport)); + return sysfs_emit(buf, "%p\n", + iscsi_ptr(priv->iscsi_transport)); } static DEVICE_ATTR(handle, S_IRUGO, show_transport_handle, NULL); -- 2.33.0