summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorHaneen Mohammed2015-03-06 20:07:13 +0100
committerGreg Kroah-Hartman2015-03-07 00:55:36 +0100
commit62af7214d8c3c9c81788e988cf99bfb02da77d0b (patch)
treef6be61633d01211752ab6ca4007bc1e1370c2d5d /drivers/staging/comedi/comedi_fops.c
parentStaging: slicoss: clean dev_err logging (diff)
downloadkernel-qcow2-linux-62af7214d8c3c9c81788e988cf99bfb02da77d0b.tar.gz
kernel-qcow2-linux-62af7214d8c3c9c81788e988cf99bfb02da77d0b.tar.xz
kernel-qcow2-linux-62af7214d8c3c9c81788e988cf99bfb02da77d0b.zip
Staging: ste_rmi4: 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. This was done using Coccinelle, with the following semantic patch: @a@ expression E, R; expression msg; @@ dev_err(E, msg, __func__, R); @script:python b@ e << a.msg; y; @@ if(e.find("%s: ") == True): m = e.replace("%s: ", "", 1); coccinelle.y = m; elif(e.find("%s ") == True): m = e.replace("%s ", "", 1); coccinelle.y = m; elif(e.find("%s:") == True): m = e.replace("%s:", "", 1); coccinelle.y = m; else: m = e.replace("%s", "",1); coccinelle.y = m; @c@ expression a.E, a.msg, a.R; identifier b.y; @@ - dev_err(E, msg, __func__, R); + dev_err(E, y, R); Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions