From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753928AbdHWLNJ (ORCPT ); Wed, 23 Aug 2017 07:13:09 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:23115 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753691AbdHWLNI (ORCPT ); Wed, 23 Aug 2017 07:13:08 -0400 Date: Wed, 23 Aug 2017 14:12:02 +0300 From: Dan Carpenter To: Shurong Zhang Cc: Jens Frederich , Daniel Drake , Jon Nettleton , Greg Kroah-Hartman , devel , linux-kernel Subject: Re: [PATCH v2] staging: olpc_dcon: Change fixed function names with "%s: ", __func__ Message-ID: <20170823104520.gx5spfql3fqaqfxe@mwanda> References: <599d2f8c.d600630a.2393.4573SMTPIN_ADDED_BROKEN@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <599d2f8c.d600630a.2393.4573SMTPIN_ADDED_BROKEN@mx.google.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 23, 2017 at 03:31:46PM +0800, Shurong Zhang wrote: > Replace hard-coded function names in strings with "%s", __func__ > in the olpc_dcon.c file. Issue found by checkpatch.pl. > > Signed-off-by: Shurong Zhang > --- > drivers/staging/olpc_dcon/olpc_dcon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c > index f7f3a78..3a8d99f 100644 > --- a/drivers/staging/olpc_dcon/olpc_dcon.c > +++ b/drivers/staging/olpc_dcon/olpc_dcon.c > @@ -456,7 +456,7 @@ static ssize_t dcon_freeze_store(struct device *dev, > if (ret) > return ret; > > - pr_info("dcon_freeze_store: %lu\n", output); > + pr_info("%s: %lu\n", __func__, output); This printk doesn't really add anything worthwhile. Just delete it. regards, dan carpenter