Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp268089iob; Thu, 28 Apr 2022 01:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVnvsueHeBAMU77ITnZkbtMCRlZC10HLAKuoZnD8xp0Z3jgFOOyW0/ZKHnhCp23hgMTzF6 X-Received: by 2002:a05:6402:209:b0:416:5211:841f with SMTP id t9-20020a056402020900b004165211841fmr35378517edv.59.1651135685501; Thu, 28 Apr 2022 01:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651135685; cv=none; d=google.com; s=arc-20160816; b=G7h9iFfA+WVpkOzc5Zfwbenur5MJr600CN14cn7ciCQyrK7qL7aXqLJgtatpvlKUIr yoANkQOgcAKTJRv1sUH8QnpFX5loCWbwWJwJMIABpoh8yHAtCRv9aw+8LAxHtkCzQM3x u+bjvcXJrt3KEEk7Pjk6wvf/m926vWZ5pWxLKDnTe4obLKGy6kjm5SH8NB4jql8U4MSb CKq59uMxlFDf+7UFuJrZeEzKK2bu/CRqwMknIv2ZOmNbwLX6zYy8/Ie60ry/9yrvGWh4 vwLyABaLvlyS0uij1/Vvf81Jj9GnHAULx2y275NBr1HE198fyrGAtDyfGVdXg8DaKBaw Fp/A== 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=PFQAhGWUBFNZUEpFiDfeHxqjBPEtSuMNxIKgcEnfVDo=; b=U88S74m2WTvzYmclDVflmHjY0fNsEgLO9H28gjrbAAXNM8jj+iJbecrwRQGi1riHuJ 7L7Kk8mTisU1jDLOWjj7KpkFhrmjYc5EQJosPuu8fX3kwBmLF5IpJ8bDujJZJwQFYwPr rRPakdvP/jtg5RsbVwdIpcxXnZUh8hwm8iWyMd+7EbYvCNjZGbyruafuNxQhAk6loonl Kbb4Hciv5razSFILR5aTGa0RTy3KvRwwQfdpWVQS8NobFFYXe7uoRtcbhU0ssukmexza ThSvC9bUZ/XlKhyzAGW44q2y6eoW8FU0fsUiFRjLzpVPTFsSx3/BkjXfnKFbRhkpsgS8 IKUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o9nZNRRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a05640227d400b00425ef55d1fesi4304434ede.447.2022.04.28.01.47.40; Thu, 28 Apr 2022 01:48:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o9nZNRRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243124AbiD1Fjt (ORCPT + 99 others); Thu, 28 Apr 2022 01:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232144AbiD1Fjq (ORCPT ); Thu, 28 Apr 2022 01:39:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B1B13FBC for ; Wed, 27 Apr 2022 22:36:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CB29261CBA for ; Thu, 28 Apr 2022 05:36:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEBFC385A0; Thu, 28 Apr 2022 05:36:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651124192; bh=W+skY9yUEL0OAM6VVty2lXt20EE+p8SAZWb/wne2n0Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9nZNRRl8vxn7YgCBDCJHGnRdTbnqpR4CB/do+AaJxDjlDC4sjXEuxslQkfYI0YOH +8IHoT9BX4tuGFHbCI0BTRacyvc0/oPRmwlHGHhzzdS8qmlyfM4mir6fpFcEPQ+3DE 8LH5Lq6C6fySHgPG+rsRPCYO4DcmpG+1vjaTXCkI= Date: Thu, 28 Apr 2022 07:36:24 +0200 From: Greg Kroah-Hartman To: Adrien Thierry Cc: Nicolas Saenz Julienne , 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: vchiq_arm: use standard print helpers Message-ID: References: <20220427182439.424963-1-athierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427182439.424963-1-athierry@redhat.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 27, 2022 at 02:24:37PM -0400, Adrien Thierry wrote: > Replace the custom debug print macros with the standard dev_err() and > friends. > > This handles TODO item "Cleanup logging mechanism". > > Signed-off-by: Adrien Thierry > --- > .../interface/vchiq_arm/vchiq_arm.c | 158 +++--- > .../interface/vchiq_arm/vchiq_connected.c | 7 +- > .../interface/vchiq_arm/vchiq_connected.h | 4 +- > .../interface/vchiq_arm/vchiq_core.c | 495 ++++++++---------- > .../interface/vchiq_arm/vchiq_core.h | 43 +- > .../interface/vchiq_arm/vchiq_debugfs.c | 105 ---- > .../interface/vchiq_arm/vchiq_dev.c | 88 ++-- > 7 files changed, 344 insertions(+), 556 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 0596ac61e286..664940e6d9e9 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > @@ -58,10 +58,6 @@ > #define KEEPALIVE_VER 1 > #define KEEPALIVE_VER_MIN KEEPALIVE_VER > > -/* Run time control of log level, based on KERN_XXX level. */ > -int vchiq_arm_log_level = VCHIQ_LOG_DEFAULT; > -int vchiq_susp_log_level = VCHIQ_LOG_ERROR; > - > DEFINE_SPINLOCK(msg_queue_spinlock); > struct vchiq_state g_state; > > @@ -253,7 +249,7 @@ create_pagelist(char *buf, char __user *ubuf, > pagelist = dma_alloc_coherent(g_dev, pagelist_size, &dma_addr, > GFP_KERNEL); > > - vchiq_log_trace(vchiq_arm_log_level, "%s - %pK", __func__, pagelist); > + dev_dbg(g_dev, "%s - %pK", __func__, pagelist); As dev_dbg() provides the output of the function name, there's no need to keep it in here when you convert to using it. Can you fix this up and resend? thanks, greg k-h