diff options
author | Puranjay Mohan <puranjay12@gmail.com> | 2019-05-15 00:44:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-20 08:40:41 +0300 |
commit | dad3f77ff4808ff78e47c78d6805c4f2f2204f93 (patch) | |
tree | e314c8bd9c3a0f3386ce06bf394c63a3c4d8987c /drivers/staging/rtl8192e | |
parent | 5249495da04956f251acda59f840696d85994f55 (diff) | |
download | linux-dad3f77ff4808ff78e47c78d6805c4f2f2204f93.tar.xz |
Staging: rtl8192e: Use %s and __func__ in strings
Fix following checkpatch.pl warnings by using %s and __func__
in strings instead of function names.
WARNING: Prefer using '"%s...", __func__' to using '_rtl92e_dm_check_rate_adaptive', this function's name, in a string
WARNING: Prefer using '"%s...", __func__' to using 'rtl92e_dm_restore_state', this function's name, in a string
Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 55d857926bba..1b7e3fda7905 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -334,7 +334,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) if (!priv->up) { RT_TRACE(COMP_RATE, - "<---- _rtl92e_dm_check_rate_adaptive(): driver is going to unload\n"); + "<---- %s: driver is going to unload\n", __func__); return; } @@ -1178,7 +1178,7 @@ void rtl92e_dm_restore_state(struct net_device *dev) if (!priv->up) { RT_TRACE(COMP_RATE, - "<---- rtl92e_dm_restore_state(): driver is going to unload\n"); + "<---- %s: driver is going to unload\n", __func__); return; } |