Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1079039iol; Thu, 9 Jun 2022 23:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBZ+c5zbwgHhy82t4bCMkS9+4i2un3qnJdiuYVsHLPcYweEQYrBkDidrs8LY57ClnujCnr X-Received: by 2002:a17:907:2d0c:b0:711:e835:f80c with SMTP id gs12-20020a1709072d0c00b00711e835f80cmr14090687ejc.257.1654840925680; Thu, 09 Jun 2022 23:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654840925; cv=none; d=google.com; s=arc-20160816; b=UJjdEq0bFclOZtIaA/j98R1NkHYvIipPvOtZuw4jN7quT8ghiZMNkCOmjAaAfWSTyT hlGZ/ldTUOPZlIxe7FBPJcAdbXj3VThTLMaaVGDIr9FxmBTgh2os+/ZG/EHENHVqtBzO kPHlmPVY4ydapRY9naGUmdwmndqGxS0q0Y1y2od+3GEmID64Lo3fxl4ZmSZvmNhWgCk1 hDu8Fol/imZGBPPAg/Gq3KAPmwnqjHNmg44LMEbHk3MCkUOQUnCcqrhqX3/G7lhQ+q0o /HjOGAnbT2eL/vh5siYt+aoSDPs4QKTGtx9CZxjI53DMTyKSvb7KpGjEh91jydnE37lA QctQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nPQLLILiN+xCulnp29DV4hvoODe0hveiVTZLMT1Da9g=; b=x85hSI/j3p4/RVyRFUyWZj+WCkxlua7GVKjFInNxKACAvs7uw9E+XH5gn8PQguYEs9 qLWTHElnb+NJipc5ZEwScarbC3/PwXApb9sdjO7KphYlUqNaY8JpXpl1ROBvBdDypDs9 m55XW9QWD++nsTUe7zy2D6uLQzCptoYh2kuOmUaiA/4b71FRki9wxJp0SVmzQzPkil93 oMwl36FmDtyllE0/Pnqd9QbO2DbNiBhnVfwlgZ2fzpGns7mj6wQz5O033u5iQGFSdtSe nCHUWlAMCgYQ7qxvqfvPJ/KH7BgBen09sQDHl1bKj0+AAlqqX0/W4oDPfTz9wB2fvZPf WzMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0UkE3l5r; 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 d14-20020a056402144e00b0042b0a1bfd4esi26169466edx.343.2022.06.09.23.01.23; Thu, 09 Jun 2022 23:02: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=0UkE3l5r; 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 S240625AbiFJFZb (ORCPT + 99 others); Fri, 10 Jun 2022 01:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234071AbiFJFZ3 (ORCPT ); Fri, 10 Jun 2022 01:25:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C23A29DC07 for ; Thu, 9 Jun 2022 22:25:27 -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 ams.source.kernel.org (Postfix) with ESMTPS id 39F65B830F6 for ; Fri, 10 Jun 2022 05:25:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65137C34114; Fri, 10 Jun 2022 05:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654838724; bh=I4f5JhTN7o6cdBtdV7WpYHM1lwzF1iBma58To0zMnS0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0UkE3l5r3w+fPXvwvYCjmAlJQNoaa/1C+MQ4ByQB8xiqkwjaAmt5TLqaVRTjkd9gr AC8um02sbNnQHFAz22iFLaL3/+YZzAzAgftqvJubBr6iflbmjfzF1XNTOv8RWi53YY 4PuvDEchYt73MBxiL9gMFGk2Y/uv5aZtmTfUG8to= Date: Fri, 10 Jun 2022 07:25:22 +0200 From: Greg KH To: Bard Liao Cc: alsa-devel@alsa-project.org, vkoul@kernel.org, vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, srinivas.kandagatla@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, bard.liao@intel.com Subject: Re: [PATCH 1/2] soundwire: intel: uniquify debug message Message-ID: References: <20220610023537.27223-1-yung-chuan.liao@linux.intel.com> <20220610023537.27223-2-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220610023537.27223-2-yung-chuan.liao@linux.intel.com> X-Spam-Status: No, score=-8.3 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Jun 10, 2022 at 10:35:36AM +0800, Bard Liao wrote: > From: Pierre-Louis Bossart > > The same debug message is replicated multiple time, add __func__ to > figure out what link is ignored. > > Signed-off-by: Pierre-Louis Bossart > Reviewed-by: Ranjani Sridharan > Reviewed-by: P?ter Ujfalusi > Signed-off-by: Bard Liao > --- > drivers/soundwire/intel.c | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c > index 505c5ef061e3..808e2f320052 100644 > --- a/drivers/soundwire/intel.c > +++ b/drivers/soundwire/intel.c > @@ -1328,8 +1328,8 @@ int intel_link_startup(struct auxiliary_device *auxdev) > > if (bus->prop.hw_disabled) { > dev_info(dev, > - "SoundWire master %d is disabled, ignoring\n", > - sdw->instance); > + "%s: SoundWire master %d is disabled, ignoring\n", > + __func__, sdw->instance); This is not a debug message, please make it such if you want to have __func__ And even then, it's not needed as you can get that from the kernel automatically. > return 0; > } > > @@ -1489,8 +1489,8 @@ int intel_link_process_wakeen_event(struct auxiliary_device *auxdev) > bus = &sdw->cdns.bus; > > if (bus->prop.hw_disabled || !sdw->startup_done) { > - dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n", > - bus->link_id); > + dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n", > + __func__, bus->link_id); > return 0; > } > > @@ -1549,8 +1549,8 @@ static int __maybe_unused intel_pm_prepare(struct device *dev) > int ret; > > if (bus->prop.hw_disabled || !sdw->startup_done) { > - dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n", > - bus->link_id); > + dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n", > + __func__, bus->link_id); Not needed, it is provided automatically if you ask the kernel for this. Same for all other instances in this patch. thanks, greg k-h