linux-stable/drivers/staging/rts5208
Haneen Mohammed 651cd163ba Staging: rts5208: 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
..
general.c staging: rts5208: add new line after declarations 2014-09-23 13:22:25 -07:00
general.h
Kconfig Staging: rts5208: Remove CONFIG_RTS5208_DEBUG option 2014-08-16 12:23:13 -07:00
Makefile
ms.c staging: rts5208/ms.c: Code style fix (space before comma) 2015-01-17 16:07:20 -08:00
ms.h
rtsx.c Staging: rts5208: clean dev_err logging 2015-03-06 15:55:36 -08:00
rtsx.h
rtsx_card.c
rtsx_card.h staging: rts5208: remove unnecessary else 2014-10-02 10:07:04 -07:00
rtsx_chip.c Staging: rts5208: helper function to enable interrupts during reset 2014-10-29 17:28:51 +08:00
rtsx_chip.h
rtsx_scsi.c Staging: rts5208: Remove braces around single if-statement 2015-02-26 13:01:14 -08:00
rtsx_scsi.h
rtsx_sys.h
rtsx_transport.c staging: rts5208: remove extra parentheses around left bit shift operation 2015-03-06 15:24:23 -08:00
rtsx_transport.h staging, rts5208, LLVMLinux: Change extern inline to static inline 2014-10-29 16:28:17 -07:00
sd.c Staging: rts5208: Fix checkpatch warning: Missing blank line 2014-09-23 13:22:25 -07:00
sd.h
spi.c
spi.h
TODO
trace.h Staging: rts5208: Use dev_dbg and print_hex_dump_bytes to dump memory 2014-08-16 12:23:13 -07:00
xd.c
xd.h