diff options
author | Haneen Mohammed <hamohammed.sa@gmail.com> | 2017-09-12 22:32:25 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-18 12:07:47 +0200 |
commit | 0fb8997bac3d0b4643436e5adf20176d62c6137c (patch) | |
tree | 480210035cb08f531a03ccee93e905d377a357c5 /drivers/staging/xgifb | |
parent | e2614ef1b2ecb3f9f1e17762b01c2b29dbc344aa (diff) | |
download | linux-0fb8997bac3d0b4643436e5adf20176d62c6137c.tar.bz2 |
staging: wlan-ng: Replace pr_debug with netdev_dbg
This patch replace pr_debug with netdev_dbg when appropriate net_device
structure is found.
Issue found using the following Coccinelle script:
@r exists@
identifier f, s, i;
position p;
@@
f(...,struct s *i,...) {
<+... when != i == NULL
(
pr_err@p(...);
|
pr_info@p(...);
|
pr_debug@p(...);
)
...+>
}
@rr@
identifier r.s, fld;
@@
struct s {
...
struct net_device *fld;
... };
@@
identifier r.i, r.s, rr.fld;
position r.p;
@@
(
-pr_err@p
+netdev_err
(
+ i->fld,
...)
|
-pr_info@p
+netdev_info
(
+ i->fld,
...)
|
-pr_debug@p
+netdev_dbg
(
+ i->fld,
...)
)
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb')
0 files changed, 0 insertions, 0 deletions