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
..
Kconfig PM / Kconfig: Replace PM_RUNTIME with PM in dependencies 2014-12-13 00:44:04 +01:00
Makefile
TODO staging: gdm72xx: Remove task from TODO list 2014-05-16 12:12:52 -07: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 staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
gdm_sdio.c Staging: gdm72xx: clean dev_err logging 2015-03-06 15:55:36 -08:00
gdm_sdio.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
gdm_usb.c staging: gdm72xx: replace print_hex_dump_debug() with dev_dbg() 2014-07-17 18:07:30 -07:00
gdm_usb.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
gdm_wimax.c staging: gdm72xx: Remove useless cast on void pointer 2014-10-30 13:05:47 -07:00
gdm_wimax.h staging: gdm72xx: Use net_device_stats from struct net_device 2014-07-09 11:57:16 -07:00
hci.h staging: gdm72xx: move T_CAPABILITY definitions to hci.h 2014-07-09 21:16:52 -07:00
netlink_k.c drivers: staging: gdm72xx: Removed unnecessary braces. 2014-09-28 23:27:35 -04:00
netlink_k.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
sdio_boot.c staging: gdm72xx: Replace comparisons on jiffies values with wrap-safe functions 2014-05-16 12:12:51 -07:00
sdio_boot.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
usb_boot.c staging: gdm72xx: clean up endianness conversions 2014-07-09 11:49:16 -07:00
usb_boot.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
usb_ids.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00
wm_ioctl.h staging: gdm72xx: use consistent style for header guards 2014-07-09 11:49:15 -07:00