diff options
author | Haneen Mohammed <[email protected]> | 2015-03-05 13:01:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-03-06 15:48:33 -0800 |
commit | cd25503f5a6f0b0d6d66185461a358e8218db745 (patch) | |
tree | e756c82936c4ad0ce20ac0a5f85b25e240e14b58 /lib/test-string_helpers.c | |
parent | 6d67b3a2f3bd82bfa75f34d9e816788d133d63b5 (diff) |
Staging: comedi: Clean dev_err() logging
This patch removes __func__ from dev_err. dev_err includes information about:
(devcice, driver, specific instance of device, etc) in the log printout, so there is no need for __func__.
This was done using Coccinelle, with the following semantic patch:
@a@
expression E;
expression msg;
@@
dev_err(E, msg, __func__);
@script:python b@
e << a.msg;
y;
@@
if(e.find("%s: ") == True):
m = e.replace("%s: ", "");
coccinelle.y = m;
elif(e.find("%s ") == True):
m = e.replace("%s ", "");
coccinelle.y = m;
else:
m = e.replace("%s", "");
@c@
expression a.E, a.msg;
identifier b.y;
@@
- dev_err(E, msg, __func__);
+ dev_err(E, y);
Signed-off-by: Haneen Mohammed <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions