Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2573991yba; Fri, 17 May 2019 21:19:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaruND9aO/0XLA3+icu6ghEQB38E5rZbzZfGrSLisqlvxeIYRvFxq1gIbUdn4hpUC7rQfB X-Received: by 2002:a17:902:8214:: with SMTP id x20mr38732719pln.308.1558153197911; Fri, 17 May 2019 21:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558153197; cv=none; d=google.com; s=arc-20160816; b=JC65kD0rYl1NR9Yg6lz4Cokh/C8KzQkDJuh/H+lWGlSPSJZBb3PL2vmJOWtEWygLt0 9IILxCsAVDkuBxpvY2lvwSHKPxOgH2z1o6c093i2+rh2A7CsnapX11T7R5UlfyJJV2IM pH2zgSPSEq+yjdYQwa85LjuuL1ClzoG7spnUXAtrrXSkuR4j7XKOWFlSGSMV+LJbA4rM xObDZMRdKn7MZziRHVzFBACt+755cuzn8170pb+sW7nQ7aG5SqgCjyLh+BIpnRPfdVcY GZ7wEjeBCV1YCXqXO4a+we9Am8rgQ5rfHmiCCnHSHhgBdLLfVKSnY0JnA49RT/xgG7SB zKDA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4k2RPAOIwlNWvBVTtEJ5zltXK23wBhV48PCCQgLPHiE=; b=OvnboGTw4ELErUbWUPnxJw2tv/KM9fLYETIdSqW3RY+QZtf+Z2qR0i+YfCoc+7C+Eq m2wZqjuQX9hMIEyeHMpjIr0vBlFZUtowaqOMYouQuwY7fjz2NVpBSKaPpPYk8FjU3h5W NahdbmytpzU9MSZjPlrHz62QNEBiCapHWDwtUiu2xSWn+ihnhsKkf/9ky3Xdrww+2FPa Tm1mmhdln5f+KnBxUb94vobIYCsOGXQ9rzpoCIDaBuaS/vwgUWsnYFKZzY6g4JOdbUy3 XfC99/u63cev9DYqsNbMrV4boR9+C/slQVfQzArgUZIE+8Tm5Fb2jIz6vt7uq4fZcCRG eWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q822CBw5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si11643993pfb.264.2019.05.17.21.19.16; Fri, 17 May 2019 21:19: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q822CBw5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbfERD2v (ORCPT + 99 others); Fri, 17 May 2019 23:28:51 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:46275 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfERD2u (ORCPT ); Fri, 17 May 2019 23:28:50 -0400 Received: by mail-qt1-f193.google.com with SMTP id z19so10258078qtz.13 for ; Fri, 17 May 2019 20:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4k2RPAOIwlNWvBVTtEJ5zltXK23wBhV48PCCQgLPHiE=; b=q822CBw5a/+uAweK0KVid8+RUmQbym/QH2YlJyz3TB7J9Ct9aXpor0aw6lOejEn8CG gmwZ93Alq+BkoYvq9gTdYNFtSzy/7Soqx08UT3ck8IeOSp34MXg+nwPGuyT9B7qclLFp lRf7OgLnq0tMmJOdOyOEA8zKXx6QYpCNSrq7iV49/MJxp6cs/M49JsxCiZA01ZfZNrif 8Se80cmUQ0cdho2HpA5FsFt6cTaMx4OM2uepgHYXTIvixxSfvaXy+eFCGHq0CYa8WUPI YEfRct2O+zSyIqu+Gj07k4aIymn8YpZ2x79u1MKrViQdefXNSqzSrHxpztobHKbIj9Mt +yDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4k2RPAOIwlNWvBVTtEJ5zltXK23wBhV48PCCQgLPHiE=; b=MvKkkSuXCxGtX05X/T9FJ6Mzw26vR4VV4kv/OIRNK8lFgMjs9q3dNXNrRagoORCvmE aIVWs8hQ9EIOfPhj3Cjh05NmRegMQ6mYHdQQe9zwz2cu8LPnGr+5Z9ejjhFYx+UMNrdk Y68S+wRjL4Z9/s+vHiktfvfvsXIMvvN1Yr9WKrXjcO70FTtWfib9bi1bfGGFEB0h75zG Jy13xvQqUhHl0V8m3oXv+IjvzKQXJWHlPyIb+cejK9+0FNqWsDj8Z+QN+DCZmobkeQGg xNuFZKLBdpArXwH7W2k1YVQX/6y4s6ohsydTRTfTEDjBRncDVgF30Udnz3POLfUdVfXp +iPQ== X-Gm-Message-State: APjAAAUEfMxzFcpUDXGSumscdqRCCAt5YEUYfrqNs6MBIfY9YBfArfXf NE+9ZjR7pwP9Siz3Cvxs8RXtqEYS2UI= X-Received: by 2002:a0c:acba:: with SMTP id m55mr11365004qvc.52.1558150129539; Fri, 17 May 2019 20:28:49 -0700 (PDT) Received: from arch-01.home (c-73-132-202-198.hsd1.dc.comcast.net. [73.132.202.198]) by smtp.gmail.com with ESMTPSA id x8sm6320857qtc.96.2019.05.17.20.28.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 20:28:49 -0700 (PDT) Date: Sat, 18 May 2019 03:28:39 +0000 From: Geordan Neukum To: Joe Perches Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] staging: kpc2000: kpc_i2c: use %s with __func__ identifier in log messages Message-ID: <20190518032838.GA12809@arch-01.home> References: <9e30f140e314f03057a2941f4d091d8965391c17.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e30f140e314f03057a2941f4d091d8965391c17.camel@perches.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 07:58:19PM -0700, Joe Perches wrote: > 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... > Joe/All, Acknowledged. I apologize for the inconvenience there -- I was unfamiliar with that API until receiving your email. I'll hold on additional uploads until other reviewers have had time to take a look, but I do plan on leveraging the ftrace API instead of just using __func__ and %s in my printk strings in the upcoming 'v2' patchset. Thanks for your feedback, Geordan