Staging: clean dev_err logging when __func__ 2nd arg
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Staging: fbtft: clean dev_err() loggingdrivers/ drivers/ drivers/ +8 more | +30 | 0 replies | |
| 2/8 | Staging: media: clean dev_err loggingdrivers/ drivers/ drivers/ +1 more | +27 | 0 replies | |
| 3/8 | Staging: gdm72xx: clean dev_err loggingdrivers/ | +2 | 0 replies | |
| 4/8 | Staging: comedi: clean dev_err loggingdrivers/ drivers/ | +13 | 0 replies | |
| 5/8 | Staging: rts5208: clean dev_err loggingdrivers/ | +2 | 0 replies | |
| 6/8 | Staging: iio: clean dev_err loggingdrivers/ drivers/ | +18 | 0 replies | |
| 7/8 | Staging: slicoss: clean dev_err loggingdrivers/ | +4 | 0 replies | |
| 8/8 | Staging: ste_rmi4: clean dev_err loggingdrivers/ | +6 | 0 replies |
Reviews trailers per patch
None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Daniel Baluta |
|---|---|
| Series | R-b |
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] Staging: clean dev_err logging when __func__ 2nd arg
This patch removes __func__ from dev_err when __func__ is the second argument. 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);
Haneen Mohammed (8):
Staging: fbtft: clean dev_err() logging
Staging: media: clean dev_err logging
Staging: gdm72xx: clean dev_err logging
Staging: comedi: clean dev_err logging
Staging: rts5208: clean dev_err logging
Staging: iio: clean dev_err logging
Staging: slicoss: clean dev_err logging
Staging: ste_rmi4: clean dev_err logging
drivers/staging/comedi/drivers/ni_mio_common.c | 4 +-- drivers/staging/comedi/drivers/usbduxsigma.c | 26 +++++++++----------- drivers/staging/fbtft/fb_agm1264k-fl.c | 16 ++++++------ drivers/staging/fbtft/fb_pcd8544.c | 3 ++- drivers/staging/fbtft/fb_ra8875.c | 8 +++--- drivers/staging/fbtft/fb_ssd1306.c | 4 +-- drivers/staging/fbtft/fb_ssd1331.c | 6 +++-- drivers/staging/fbtft/fb_tls8204.c | 2 +- drivers/staging/fbtft/fb_uc1701.c | 3 ++- drivers/staging/fbtft/fb_watterott.c | 2 +- drivers/staging/fbtft/fbtft-bus.c | 2 +- drivers/staging/fbtft/fbtft-core.c | 5 ++-- drivers/staging/fbtft/fbtft-io.c | 7 +++--- drivers/staging/gdm72xx/gdm_sdio.c | 6 ++--- drivers/staging/iio/light/isl29028.c | 8 +++--- drivers/staging/iio/light/tsl2x7x_core.c | 34 +++++++++++--------------- drivers/staging/media/lirc/lirc_imon.c | 26 +++++++++----------- drivers/staging/media/lirc/lirc_sasem.c | 18 ++++++-------- drivers/staging/media/omap4iss/iss.c | 16 ++++++------ drivers/staging/media/omap4iss/iss_video.c | 3 +-- drivers/staging/rts5208/rtsx.c | 4 +-- drivers/staging/slicoss/slicoss.c | 9 +++---- drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c | 12 ++++----- 23 files changed, 102 insertions(+), 122 deletions(-)
Signature · 1 line
1.9.1