Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2588633yba; Fri, 17 May 2019 21:45:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxNmdzhEa6ayjsnQw3UfBWhVJtnTjgGs4TbsjMTJ3Bj2ZU30Tjnqrrw++Dwq4IZwOA9Tyo X-Received: by 2002:a63:f44b:: with SMTP id p11mr58603033pgk.225.1558154757561; Fri, 17 May 2019 21:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558154757; cv=none; d=google.com; s=arc-20160816; b=sCmSFd7BylcWmWX2QddQn78yMZ3x2EVR9jCwzKr25E/eAyNhbB5hRfqYPMqPZdVWW3 BKtGZ3n7bhcsM4sj2oMlatLw/2Hb8GfufOgXFrroLYYLK2/RU9TDfzgj7J0Cd470oI+Z ZxKEj+bM/3OWvC08WJHu3lAkTgDEpGnuu8VZRXro70Az/qNv/0w7ElOkN5RvHt4UdHgp XcvUfB9YpPV0A/ncKNPmlPSo5o8cYtJoUCPAxbtyrbiEr1a//34A5XU0TjQglaCrKWvU MOjlezsf+Exafyy7C3TTeJN1chjanRVNgFx2VOW04nN4CNy7Lc/OMH2JUXtKzBWaUSGB 2jdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=yi7C5wKa1/JmGlZK0ixyJ4cIuhTk6wMu61vzOudReWI=; b=VF03VTVo1DNLiC6Q6ZynwLOtYpd5T64xoz/8i+Itqbh/LpE6GAtj2Q4AlduC9VEDc0 colCWL2BODCPpD7V9ooTh3EYmb1nQEGXwwfTRSIp5LF9KiPUlfBQ34/T/u0R9LAB9BLl FOl+UPxCFsGwbDMhi0DpwyKCjE9rZqfHmdtL0Tv84bk2wXCoIku87VZIBn5KZ/m3DWB/ MfqtffhqIU7Wyf3XA9ILddDUVLsc/wdNgcYrYsqtG9e3QYn/G5a08k26qiziNkwao2r9 ZS+m8mYFQgImSKywM0RG7CxaX3b9DxuheEPvr/g1CllQm5KKEtQhbcuJM+2Ku5UmrJVw 548g== ARC-Authentication-Results: i=1; mx.google.com; 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 n14si10129304pfq.105.2019.05.17.21.45.30; Fri, 17 May 2019 21:45:57 -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; 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 S1727620AbfERC6X (ORCPT + 99 others); Fri, 17 May 2019 22:58:23 -0400 Received: from smtprelay0128.hostedemail.com ([216.40.44.128]:32949 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727367AbfERC6X (ORCPT ); Fri, 17 May 2019 22:58:23 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id DEC82100E806B; Sat, 18 May 2019 02:58:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:599:968:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3866:3867:3868:4321:5007:10004:10400:10848:11232:11657:11658:11914:12043:12048:12740:12760:12895:13069:13255:13311:13357:13439:14181:14659:14721:21080:21212:21433:21611:21627:30029:30046:30054:30091,0,RBL:23.242.70.174:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:31,LUA_SUMMARY:none X-HE-Tag: knot77_2bcab207af217 X-Filterd-Recvd-Size: 1751 Received: from XPS-9350 (cpe-23-242-70-174.socal.res.rr.com [23.242.70.174]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Sat, 18 May 2019 02:58:20 +0000 (UTC) Message-ID: <9e30f140e314f03057a2941f4d091d8965391c17.camel@perches.com> Subject: Re: [PATCH 4/5] staging: kpc2000: kpc_i2c: use %s with __func__ identifier in log messages From: Joe Perches To: Geordan Neukum , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Fri, 17 May 2019 19:58:19 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-05-18 at 02:29 +0000, Geordan Neukum wrote: > Throughout i2c_driver.c, there are instances where the log strings > contain the function's name hardcoded into the string. Instead, use the > printk conversion specifier '%s' with the __func__ preprocessor > identifier to more maintainably print the function's name. Might as well remove all of these and use the builtin ftrace function tracing mechanism instead. > diff --git a/drivers/staging/kpc2000/kpc_i2c/i2c_driver.c b/drivers/staging/kpc2000/kpc_i2c/i2c_driver.c [] > @@ -142,7 +142,7 @@ static int i801_check_pre(struct i2c_device *priv) > { > int status; > > - dev_dbg(&priv->adapter.dev, "i801_check_pre\n"); > + dev_dbg(&priv->adapter.dev, "%s\n", __func__); etc...