Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp223751pxb; Wed, 22 Sep 2021 21:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYYJtF0EnYexuSGqVHbVMzSqD38hfZ6yqhdFUYuQsikS2kWLX4ldqLVld401mMcBT89LN/ X-Received: by 2002:a17:906:2a0d:: with SMTP id j13mr2636764eje.545.1632369676306; Wed, 22 Sep 2021 21:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632369676; cv=none; d=google.com; s=arc-20160816; b=gICiOUs9C7Tg6325xotrCqtrFuIbbICe9fBhPHEt5AQt4DW0GQ/ABZguhaVBIRkoIc tw1s/2zJyYDejc2qXCOKO0HjzotXl15HJwf+5TfUMQqrs/TxmvlosheH9TSrB8Fogjnb VHCR1qsZ6zMIh+GfrW4a+hgO4giIso6dGQlA/HZceMvqOtaS3cxBUQtwIhbZWHosbPhD M3duwYkGV8HrXtSn7wqhu3dSdzYasyqWy7pnGfjQlimiMlOJfob1+IseqVv5La9/pLcP YLZeeBnAiKcc3arccg1yzXTXr1eEljpXz+Lk+UP4vhkQuXEVKAL1AjbXwZ7AO1h16MZk A3QA== 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=mVjyM6E/173u2QPk9uOeFHzpEIGtf80RxayKPLZh3ss=; b=tb3uNjHMH9TUOpMD2+1rSU2wo3jgBUwO+RQj49SvcgLKhvF2NlEcKGYcyF+b1Ykwcm zGkWF1ryVMNFMI5eqgdrUzP24nDrMf2BEdfvY62ke6iEv8arb9FIJPoYTxsLaxTbuqxv RH39qAP3eey83gnE/HW76u6AqJhEAr1VLW8SJ3lMloU8nnSv9wUgMIGD78NMtaFLGQnr Z3MTQr7kCzoHrTvrtupYe7AwFLU38mpJd4co9U/n9z9dKLpqgwiem/0r8UP0dTIxpQ0Z p66Tq+jIJBrbprVDw6Fm2Su3L6OsCDNu3Ir5Jfy4O4u4WSrEMWf1xqbA4/+xUHirflUr q8Hw== 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 i20si5523404edc.81.2021.09.22.21.00.52; Wed, 22 Sep 2021 21:01:16 -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 S232419AbhIWD5x (ORCPT + 99 others); Wed, 22 Sep 2021 23:57:53 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:32986 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239133AbhIWD5w (ORCPT ); Wed, 22 Sep 2021 23:57:52 -0400 Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id B49BA1008CBCD; Thu, 23 Sep 2021 11:56:19 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id DFA8C200B5750; Thu, 23 Sep 2021 11:56:18 +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 OmACp8iz5J-C; Thu, 23 Sep 2021 11:56:18 +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 1EB59200C02C8; Thu, 23 Sep 2021 11:55:57 +0800 (CST) From: Guo Zhi To: nsaenz@kernel.org, gregkh@linuxfoundation.org, peterz@infradead.org, maz@kernel.org, bsegall@google.com, rdunlap@infradead.org, airlied@redhat.com, kan.liang@linux.intel.com, odin@uged.al Cc: bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Guo Zhi Subject: [PATCH] staging: vchip_arm: Fix misuse of %x Date: Thu, 23 Sep 2021 11:55:54 +0800 Message-Id: <20210923035554.669434-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 %pK to print the pointers. Signed-off-by: Guo Zhi --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index b5aac862a29..408e5fe710b 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -591,11 +591,11 @@ service_callback(enum vchiq_reason reason, struct vchiq_header *header, return VCHIQ_SUCCESS; vchiq_log_trace(vchiq_arm_log_level, - "%s - service %lx(%d,%p), reason %d, header %lx, instance %lx, bulk_userdata %lx", - __func__, (unsigned long)user_service, + "%s - service %pK(%d,%p), reason %d, header %pK, instance %pK, bulk_userdata %pK", + __func__, user_service, service->localport, user_service->userdata, - reason, (unsigned long)header, - (unsigned long)instance, (unsigned long)bulk_userdata); + reason, header, + instance, bulk_userdata); if (header && user_service->is_vchi) { spin_lock(&msg_queue_spinlock); -- 2.33.0