Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2986075pxb; Fri, 8 Oct 2021 21:40:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIyOnu4zQnCPQIAkzl6bzQpRrO8q2qizGCPywit5AnmrSZvypRvgFjeA7HbiHhxZCzLHV6 X-Received: by 2002:a17:903:1ca:b0:13e:f367:9361 with SMTP id e10-20020a17090301ca00b0013ef3679361mr13052033plh.3.1633754420781; Fri, 08 Oct 2021 21:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633754420; cv=none; d=google.com; s=arc-20160816; b=FYaIZufEK+cX0h5SOQjcQj//U7Fqt68u8q2K6Yt1mjnmv8kfeA3KLT2e4j7IKjB0zL MK84qH2dpth4zX9va5Xqr34tgeVI6saJ37z/DwWssVtzU8JLZktFDvXBXxeOCzIjGzV3 4e7bS5MJEBxQxh7T/thh0HgJdYERhCtYaX0IBRQuaubxcE9mlypDUXZDAxROKHvdx8/o S3XosxaZSLkEhpkN+Fgd/mzsDuUz/PjIyo5HGfwEkWu+ZmUc58fYOeOhxYgPRMQCW2zV 1OcFxFwCY50HqQ9bzIk4O9+uuL7jGX9c9M9iwvFcItWBzUC0/4JFwfGdB8e9pwYLXYsg LbcQ== 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=Y7T8bXelF16H+KupwZhIVoFfBIJ7fb1y+7t9/6UEH9M=; b=YRlNfwS9Ab9LhXE87nP9+4V1J3SqIZkXHyLNfY3qJXe6aYtR/21KMk5RDi8xyLGm2c 2iJaezIE72elUJ+I6mEKLSngA/p3Eswkzh4vXcrdVVgHH9FIVwhOLvJpNXuhP7FbpZXi /0FAEDRdPbNHJh7NWLA3fHuCOD59WcX8wI0Gx4tvO+qTD39G++x6KRPJFoPkj7BpvTXs QjVhqVqJdS5pPGyyc59paLw/yUiao+t4kFijNuS/YRyRoDfNelQe3YKcCv7BJKG0Ts89 sE+49zqMuFUQbLb6AWCr1ivnwLk2cjWsX6Mb0l/IdovOfSsAhwznkErzsd/nOuXyiH1I dvLQ== 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 lk6si20725426pjb.132.2021.10.08.21.40.07; Fri, 08 Oct 2021 21:40:20 -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 S231931AbhJIElP (ORCPT + 99 others); Sat, 9 Oct 2021 00:41:15 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:44138 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbhJIElP (ORCPT ); Sat, 9 Oct 2021 00:41:15 -0400 Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id 377B41008CBC1; Sat, 9 Oct 2021 12:39:15 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id 1FE0B200C082D; Sat, 9 Oct 2021 12:39: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 O8Xitoy0QZnE; Sat, 9 Oct 2021 12:39: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 0808B200B8924; Sat, 9 Oct 2021 12:38:54 +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 v2] scsi scsi_transport_iscsi.c: fix misuse of %llu in scsi_transport_iscsi.c Date: Sat, 9 Oct 2021 12:38:51 +0800 Message-Id: <20211009043851.212503-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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 922e4c7bd88e..14050c4fdb89 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -129,8 +129,7 @@ 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", priv->iscsi_transport); } static DEVICE_ATTR(handle, S_IRUGO, show_transport_handle, NULL); -- 2.33.0