[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOP-VhnxtWvgf-E8=1O8=YdpecF+-pWJ-gvHOZgBwtK9nAMOcQ@mail.gmail.com>
Date: Sun, 6 Aug 2017 00:12:47 +0800
From: 张树荣 <marvinzhang.kernel@...il.com>
To: Jens Frederich <jfrederich@...il.com>,
Daniel Drake <dsd@...top.org>,
Jon Nettleton <jon.nettleton@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: devel <devel@...verdev.osuosl.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] staging: olpc_dcon: Fix coding style issue caught
bycheckpatch.pl related to function name in debug print
Replace hard-coded function names in strings with "%s", __func__
in the olpc_dcon.c file. Issue found by checkpatch.pl.
Signed-off-by: Marvin Zhang <MarvinZhang.kernel@...il.com>
---
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..429ca58 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);
switch (output) {
case 0:
--
2.7.4
Powered by blists - more mailing lists