Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8057622ybi; Thu, 6 Jun 2019 06:06:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv7CKHYyPyOjQ3qcETh6qEALsZ/RwWIiOaXtvAJ1Fq8BF+v/BEmN7VhsT6SKcvfR0drfcz X-Received: by 2002:a17:902:b101:: with SMTP id q1mr24013431plr.219.1559826379532; Thu, 06 Jun 2019 06:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559826379; cv=none; d=google.com; s=arc-20160816; b=hCX/fu/JYukVBsRO/aUN9oZhOkOZzgVMY7FVWtKeupWeBpDdfXygmdX4y34AX5l0zi lC/zzVafk3OZ/2/cHW6QVM/c3P5LBy3CNHVBkIHvM2qf075HNgUHlvQnf3ngNnCqvL4Y bmqnU71wyo2WPplTLizKawzJttEv6/ntXMeE7a+UQmN9lgzHYEAfBQUpUY9OFmF0RpkT J1G+YfhoWb7m+wrNz6zhbf4t87V6RR8SWGwOqeam8w+cMDAm8bKLiQpxh6rWLaQSAR2q HUJjEiP4GR1Wlyw0zIfqYspy9k6ML9mNH/8vNcyBfYjeN/wJgXmrg9+TswAWw2YcuAqV yENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jEtRFMW16CZmP6WCvllB0C6YJ6zV6G/Gh/umN+OT3ds=; b=Dk8kQg5eTe+7gJ6VKGSqahKUhjlS2wzscdxo2+Wn4aBGA2Lkj0bKuauD0u4tybiWsC qyTAm0VcXQFK1x5w6s89bHhOL4zEdzV4HWmO3TQsrpcbUbnnpPZ7IW00Txg5i39BLrHL 8kF8dCUn3f/lG4SEminuRqRUlOG0CFoW5oMGJwpG28gnuWN/AmVi36SHhQIRnYpMl0Cr 46R1OdWyFNIkJ/X2PKydFoEu92mnij8/swF4WjT1bSdwEWoi0LNMf62xHS8gM3ZF0zjz QJEkjCbgl+JbURO5jQfIYZb8G00kwjLGIsALdM6YLU3UEMxw1z5XTIYIrqxDzJGBYKoV ORJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kQpFEkxj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si1842746pjy.14.2019.06.06.06.06.00; Thu, 06 Jun 2019 06:06:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kQpFEkxj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbfFFMzx (ORCPT + 99 others); Thu, 6 Jun 2019 08:55:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:36110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbfFFMzx (ORCPT ); Thu, 6 Jun 2019 08:55:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41CF12070B; Thu, 6 Jun 2019 12:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559825752; bh=1hbBwnqN56Y/JMha8383D60Ivnk7r8lWw9qY3990Jx8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kQpFEkxj1lVEGqH1VbTPjTunTeW0nCtQANi+nuicZUsJauqdNJ6LrfBOvY7TIppIY 0eCdtd/Z5WQjDDJRHCCBROkGkflZjOXduAveM+IdB/jZIqUSAzd2U2Hr64J1rhzKo1 vqvI2Y6bl8KdcfE2ZsuiXyq89F78+22vSWcLE70k= Date: Thu, 6 Jun 2019 14:55:50 +0200 From: Greg KH To: Simon =?iso-8859-1?Q?Sandstr=F6m?= Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] staging: kpc2000: use __func__ in debug messages in core.c Message-ID: <20190606125550.GA11929@kroah.com> References: <20190603222916.20698-1-simon@nikanor.nu> <20190603222916.20698-5-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190603222916.20698-5-simon@nikanor.nu> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 04, 2019 at 12:29:13AM +0200, Simon Sandstr?m wrote: > Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using > '', this function's name, in a string". > > Signed-off-by: Simon Sandstr?m > --- > drivers/staging/kpc2000/kpc2000/core.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c > index a70665a202c3..6d4fc1f37c9f 100644 > --- a/drivers/staging/kpc2000/kpc2000/core.c > +++ b/drivers/staging/kpc2000/kpc2000/core.c > @@ -312,8 +312,8 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, > unsigned long dma_bar_phys_len; > u16 regval; > > - dev_dbg(&pdev->dev, "kp2000_pcie_probe(pdev = [%p], id = [%p])\n", > - pdev, id); > + dev_dbg(&pdev->dev, "%s(pdev = [%p], id = [%p])\n", > + __func__, pdev, id); debugging lines that say "called this function!" can all be removed, as we have ftrace in the kernel tree, we can use that instead. I'll take this, but feel free to clean them up as follow-on patches. thanks, greg k-h