alistair23-linux/drivers/staging/gdm72xx
Haneen Mohammed 99beca1367 Staging: gdm72xx: 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
..
gdm_qos.c staging: gdm72xx: Condense two statements into one to improve code readability. 2015-03-01 16:57:36 -08:00
gdm_qos.h
gdm_sdio.c Staging: gdm72xx: clean dev_err logging 2015-03-06 15:55:36 -08:00
gdm_sdio.h
gdm_usb.c
gdm_usb.h
gdm_wimax.c
gdm_wimax.h
hci.h
Kconfig
Makefile
netlink_k.c
netlink_k.h
sdio_boot.c
sdio_boot.h
TODO
usb_boot.c
usb_boot.h
usb_ids.h
wm_ioctl.h