linux/drivers/staging/media
Haneen Mohammed 8c6ccbeb51 Staging: media: 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>
2015-03-06 15:55:36 -08:00
..
bcm2048 staging: media: bcm2048: remove extra parentheses around right bit shift operation 2015-03-06 15:22:42 -08:00
cxd2099 staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
davinci_vpfe staging: media: Remove redundant memset. 2015-03-01 17:09:52 -08:00
dt3155v4l [media] staging/media: fix querycap 2014-12-02 11:30:04 -02:00
lirc Staging: media: clean dev_err logging 2015-03-06 15:55:36 -08:00
mn88472 [media] mn88472: simplify bandwidth registers setting code 2015-02-03 17:17:49 -02:00
mn88473 Staging: media: mn88473: Match alignment with open parenthesis 2015-02-26 12:23:59 -08:00
omap4iss Staging: media: clean dev_err logging 2015-03-06 15:55:36 -08:00
Kconfig [media] bw/c-qcam, w9966, pms: remove deprecated staging drivers 2015-01-29 19:16:10 -02:00
Makefile [media] bw/c-qcam, w9966, pms: remove deprecated staging drivers 2015-01-29 19:16:10 -02:00