summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorNick Simonov <nicksimonovv@gmail.com>2018-05-15 10:33:52 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-05-15 12:00:53 -0700
commit67043f41dd1d375ae04a1f7195b398f5721dfc09 (patch)
tree996433a11c557e9022a74755c6e7f32d50ca6b4a /drivers/input
parente7330fa032bb5e5dd393db35ab544ac8e52e9e62 (diff)
Input: replace hard coded string with __func__ in pr_err()
Change hardcoded string "input_set_capability" in pr_err() function call, replace it with "%s" __func__ instead. Signed-off-by: Nick Simonov <nicksimonovv@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 9785546420a7..6365c1958264 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1943,8 +1943,7 @@ void input_set_capability(struct input_dev *dev, unsigned int type, unsigned int
break;
default:
- pr_err("input_set_capability: unknown type %u (code %u)\n",
- type, code);
+ pr_err("%s: unknown type %u (code %u)\n", __func__, type, code);
dump_stack();
return;
}