aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft-bus.c
diff options
context:
space:
mode:
authorHaneen Mohammed <hamohammed.sa@gmail.com>2015-03-06 21:59:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 15:55:36 -0800
commitaed1c72e447f0ac0985eecbe1c2403eb7176d606 (patch)
tree3cddd6f451e3a8e60d6114f8b100f32b7cd5dec2 /drivers/staging/fbtft/fbtft-bus.c
parentStaging: media: Replace dev_err with pr_err to avoid null pointer derefrence (diff)
downloadlinux-dev-aed1c72e447f0ac0985eecbe1c2403eb7176d606.tar.xz
linux-dev-aed1c72e447f0ac0985eecbe1c2403eb7176d606.zip
Staging: fbtft: 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/fbtft/fbtft-bus.c')
-rw-r--r--drivers/staging/fbtft/fbtft-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index b3cddb0b3d69..52af9cbbc2a6 100644
--- a/drivers/staging/fbtft/fbtft-bus.c
+++ b/drivers/staging/fbtft/fbtft-bus.c
@@ -111,7 +111,7 @@ void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
ret = par->fbtftops.write(par, par->buf, (len + pad) * sizeof(u16));
if (ret < 0) {
dev_err(par->info->device,
- "%s: write() failed and returned %d\n", __func__, ret);
+ "write() failed and returned %d\n", ret);
return;
}
}