Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp263910pxb; Wed, 22 Sep 2021 22:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMwqg1hHzXlgDmSnFbUlR7kAbQIpwYlG5f/yEwEynWn973RY2FWfP5pE+jd4ksvDBTZalw X-Received: by 2002:a17:906:3591:: with SMTP id o17mr3174562ejb.158.1632374503805; Wed, 22 Sep 2021 22:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632374503; cv=none; d=google.com; s=arc-20160816; b=rf8qV0R/1exnaITb11MhEG8ItcESz/8t2pV2qxRNZOryi05X1FDoTh9kASe7He1lhI KtzTS3bk9E6t6FqZuYAG1dQUc0bfTZT7lNHlAZNBcrq8WBl0uFUkLluDd7xlTgJ5ue7X VN4/EhVuvtdN9DnhM0aQHA58VeQioPGSwfGHVnY7F8YKhPVZYtksdz+buHxIiEIyso5V /fIvNRDkp8WISsO/O2rOguL53SEitK+68CLPBbTDdzZKJhoe2nZ3khr0hwr0jQK0c3a4 +vH4A5A55eu2geSuIzgYWLMQDY1C3CHB/HFzLsjY9qNO1pV5y4xTlLgyrlM5sFST1mC5 EljQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wHc62l62M/YMybNtSwd2YJPlLohj5pabLHPJlnwdJSk=; b=JCBqoTTtyWidu6omqXFxqbuXaFIzSfigfEcWOvltZHMsauAUtluah/0n6OoAYI1r3m eLBt33bkH+LErgH2CCR7mwV617VDQ+Xyh/9m32jvHx+1IUw4/I59kn/ObJhE7PiF70Qn itTjB6T4gj7pmksEj8A16PvevdTz9Y812KDCpuiptEV0/6gwhejO8pqi4OxSg4xdhssR Pk0lavEvxDoDnznFW826Bp1954HOvWYVTnHxiS/xYWlwEdBjqI/d1XJ7bljQrD1gnTe0 u/FTYPgSLCwGE91Bc2xFMxKcPLeUJF159ggb0iKcrzqOJ/lcDBcEB7e28hf8HjoeDZ/X UiYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pShjpiwW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si4667981edi.35.2021.09.22.22.21.19; Wed, 22 Sep 2021 22:21:43 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pShjpiwW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhIWFVe (ORCPT + 99 others); Thu, 23 Sep 2021 01:21:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:51554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbhIWFVd (ORCPT ); Thu, 23 Sep 2021 01:21:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 75A3661131; Thu, 23 Sep 2021 05:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632374402; bh=8QhBmcAYkwKnbZALoCVXITIZbxDQBwHjZfWw0diAJpU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pShjpiwWB2yGoGkYnKVMCWHAM/f+8nnvcClkQsXaEqgczdjNgsECtaFu02hJ6Uz2B C/1/vwql0cdS0U5pC+K71M7IGtbTkcfqOM0/5Ae1sjxhoaeduEYMzHQBmDLVMOpz7p IiPsyGrZ+97jMcg7Or7xt+ilcDwfRD205nRAjUoM= Date: Thu, 23 Sep 2021 07:19:34 +0200 From: Greg KH To: Guo Zhi Cc: nsaenz@kernel.org, peterz@infradead.org, maz@kernel.org, bsegall@google.com, rdunlap@infradead.org, airlied@redhat.com, kan.liang@linux.intel.com, odin@uged.al, 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 Subject: Re: [PATCH] staging: vchip_arm: Fix misuse of %x Message-ID: References: <20210923035554.669434-1-qtxuning1999@sjtu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210923035554.669434-1-qtxuning1999@sjtu.edu.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 11:55:54AM +0800, Guo Zhi wrote: > 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); Why print this out at all? What uses this? Can it just be deleted? thanks, greg k-h