forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtlwifi: Convert printks to pr_<level>
Use the current logging styles. Add pr_fmt where appropriate. Remove now unnecessary prefixes from printks. Convert hard coded prefix to __func__. Add a missing "\n" to a format. Signed-off-by: Joe Perches <[email protected]> Acked-by: Larry Finger <[email protected]> Signed-off-by: John W. Linville <[email protected]>
- Loading branch information
1 parent
6054069
commit 292b119
Showing
11 changed files
with
72 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ | |
* Larry Finger <[email protected]> | ||
* | ||
****************************************************************************/ | ||
|
||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
|
||
#include <linux/module.h> | ||
|
||
#include "../wifi.h" | ||
|
@@ -213,14 +216,14 @@ bool rtl92c_init_llt_table(struct ieee80211_hw *hw, u32 boundary) | |
for (i = 0; i < (boundary - 1); i++) { | ||
rst = rtl92c_llt_write(hw, i , i + 1); | ||
if (true != rst) { | ||
printk(KERN_ERR "===> %s #1 fail\n", __func__); | ||
pr_err("===> %s #1 fail\n", __func__); | ||
return rst; | ||
} | ||
} | ||
/* end of list */ | ||
rst = rtl92c_llt_write(hw, (boundary - 1), 0xFF); | ||
if (true != rst) { | ||
printk(KERN_ERR "===> %s #2 fail\n", __func__); | ||
pr_err("===> %s #2 fail\n", __func__); | ||
return rst; | ||
} | ||
/* Make the other pages as ring buffer | ||
|
@@ -231,14 +234,14 @@ bool rtl92c_init_llt_table(struct ieee80211_hw *hw, u32 boundary) | |
for (i = boundary; i < LLT_LAST_ENTRY_OF_TX_PKT_BUFFER; i++) { | ||
rst = rtl92c_llt_write(hw, i, (i + 1)); | ||
if (true != rst) { | ||
printk(KERN_ERR "===> %s #3 fail\n", __func__); | ||
pr_err("===> %s #3 fail\n", __func__); | ||
return rst; | ||
} | ||
} | ||
/* Let last entry point to the start entry of ring buffer */ | ||
rst = rtl92c_llt_write(hw, LLT_LAST_ENTRY_OF_TX_PKT_BUFFER, boundary); | ||
if (true != rst) { | ||
printk(KERN_ERR "===> %s #4 fail\n", __func__); | ||
pr_err("===> %s #4 fail\n", __func__); | ||
return rst; | ||
} | ||
return rst; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.