Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp32032pxb; Wed, 29 Sep 2021 20:14:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWgL0EjTd0VAxKvz/3y3LqVZuxuXb7nYv48ywJGA1tkRNtZJni4kT8uNdY8AzYvhXK2O3J X-Received: by 2002:a50:d802:: with SMTP id o2mr4110770edj.331.1632971660046; Wed, 29 Sep 2021 20:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632971660; cv=none; d=google.com; s=arc-20160816; b=lvOCzpsSyUcHXoOPaWuzJf9Kml6HqReid5KlkPLVzTBgzf/KXebOFxzWGhm1iM6OK7 3+EoWI5Oxs5mz2+zmm7xOyIMMkkTcOMrq27YttD8hqPFmJiTNrRoa+UBzRco8R0mHwI9 kB04AXeQEuJZ4p8JO8y/9rKQAsWU4idabzFt6NGo0RAyxOSOrJbn8+LeGf8/0+PSHpXA 6caCrNNtBSwBHmQL0rx1xmMomXSeunykvcElIL7qklJnF6GU5Xs2sdG/djDNJmsD9/az Syj5jUg4ofpJMR0uCMjhJAciUMWGnse1tLx/rg+erJZyyaYNdpxr+HdWgEJcaihsCgRy 0Tzw== 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=zHTUgDHWh70XQ+Y4Bj7DTsRUuMEKgWjrjo2dxt6QTCA=; b=UFSQIDN9c3S+pv0iTObdUmjpDwO3ERy2Y9cWSDgmThr8e6GGvWPD8n94LIrBAGseya pNAXvCRTTmFK8p1jR8e5FEpl0sYDOY2dHJpEkBYjGWfH2B/xaAxQOHWSXAYDiFSwQaqc +1v4oYLRkjmPuum1hBZmGLCKDZiSM6xnnSuUrm+NMbBU3QnG0jcRkT6sy0Bngbq1CD8W xnizDsGveYR9zcWpyQ5E/CQ0KQPjBGY3cMteFs9AbnBPrwABN/5xLkgERvMSM6RlCh9S /OfaWbcLeOyvmsSwBBrwMxivY/gfjgWYsG6yDbMHRg6G9aS1fSIdsaOfPR+X/jG3zugl 4C8Q== 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 cu17si2125518ejb.676.2021.09.29.20.13.55; Wed, 29 Sep 2021 20:14: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 S1347811AbhI3DII (ORCPT + 99 others); Wed, 29 Sep 2021 23:08:08 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:58790 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347719AbhI3DIH (ORCPT ); Wed, 29 Sep 2021 23:08:07 -0400 Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id 4F9411008B38A; Thu, 30 Sep 2021 11:06:24 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id AFE8D200A3124; Thu, 30 Sep 2021 11:06:23 +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 TyVqeIkG86CV; Thu, 30 Sep 2021 11:06:23 +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 25D4A200A313B; Thu, 30 Sep 2021 11:06:10 +0800 (CST) From: Guo Zhi To: Damien Le Moal Cc: Guo Zhi , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ata: atp867x: Cleanup pointer value print Date: Thu, 30 Sep 2021 11:05:32 +0800 Message-Id: <20210930030533.1216577-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' and printed with %lx Change %lx to %p to print the secured pointer. Signed-off-by: Guo Zhi --- drivers/ata/pata_atp867x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index 2bc5fc81efe3..c32b95f48e50 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c @@ -447,11 +447,11 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host) #ifdef ATP867X_DEBUG atp867x_check_ports(ap, i); #endif - ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", - (unsigned long)ioaddr->cmd_addr, - (unsigned long)ioaddr->ctl_addr); - ata_port_desc(ap, "bmdma 0x%lx", - (unsigned long)ioaddr->bmdma_addr); + ata_port_desc(ap, "cmd 0x%p ctl 0x%p", + ioaddr->cmd_addr, + ioaddr->ctl_addr); + ata_port_desc(ap, "bmdma 0x%p", + ioaddr->bmdma_addr); mask |= 1 << i; } -- 2.33.0