Skip to contentSkip to conversation

staging: rtl8188eu: use pr_info() instead of printk()

PATCH New Aastha Gupta 1 participant 1 message Sep 16, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8188eu: use pr_info() instead of printk()

Fixes checkpatch.pl warning:
WARNING: printk() should include KERN_ facility level

Replaced printk() without any KERN_facility level with pr_info(). The statements before use pr_info and the new line character is to be appended to them.
Could have used printk() with KERN_INFO level, but used pr_info() just to use the same function as that had been used before in the code.

---
 drivers/staging/rtl8188eu/include/rtw_debug.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/include/rtw_debug.h +2 -2
index 9cc4b8c..33bc7f5 100644
@@ -106,9 +106,9 @@ extern u32 GlobalDebugLevel;
 					 (((__i + 1) % 4) == 0) ?	\
 					 "  " : " ");	\
 				if (((__i + 1) % 16) == 0)		\
-					printk("\n");			\
+					pr_info("\n");			\
 			}						\
-			printk("\n");					\
+			pr_info("\n");					\
 		}							\
 	} while (0)
 
Signature · 1 line
2.7.4