Staging: rtl8192u: ieee80211: Fix printk debug style warning
PATCH 1/1 Staging: rtl8192u: ieee80211: Fix printk debug style warning
This fixes the following checkpatch.pl warnings:
WARNING: Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ...
--- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +6 -6
@@ -73,7 +73,7 @@ static void *ieee80211_ccmp_init(int key_idx) priv->tfm = (void *)crypto_alloc_cipher ("aes" ,0 ,CRYPTO_ALG_ASYNC );if (IS_ERR (priv->tfm)) { -printk (KERN_DEBUG "ieee80211_crypt_ccmp: could not allocate " +pr_debug ("ieee80211_crypt_ccmp: could not allocate " "crypto API aes\n" ); priv->tfm =NULL ; goto fail;
@@ -284,7 +284,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) keyidx = pos[3 ];if (!(keyidx & (1 <<5 ))) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: received packet without ExtIV" +pr_debug ("CCMP: received packet without ExtIV" " flag from %pM\n" , hdr->addr2); } key->dot11RSNAStatsCCMPFormatErrors++;
@@ -292,13 +292,13 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) } keyidx >>=6 ;if (key->key_idx != keyidx) { -printk (KERN_DEBUG "CCMP: RX tkey->key_idx=%d frame " +pr_debug ("CCMP: RX tkey->key_idx=%d frame " "keyidx=%d priv=%p\n" , key->key_idx, keyidx, priv);return -6 ; }if (!key->key_set) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: received packet from %pM" +pr_debug ("CCMP: received packet from %pM" " with keyid=%d that does not have a configured" " key\n" , hdr->addr2, keyidx); }
@@ -315,7 +315,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (memcmp (pn, key->rx_pn,CCMP_PN_LEN ) <=0 ) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: replay detected: STA=%pM" +pr_debug ("CCMP: replay detected: STA=%pM" " previous PN %pm received PN %pm\n" , hdr->addr2, key->rx_pn, pn); }
@@ -353,7 +353,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (memcmp (mic, a,CCMP_MIC_LEN ) !=0 ) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: decrypt failed: STA=" +pr_debug ("CCMP: decrypt failed: STA=" "%pM\n" , hdr->addr2); } key->dot11RSNAStatsCCMPDecryptErrors++;
Signature · 1 line
1.9.1
Quoted 14 lines · Hatice ERTÜRK
This fixes the following checkpatch.pl warnings:
WARNING: Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ...Signed-off-by Hatice ERTURK <[email protected]>--- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +0
-0
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c static void *ieee80211_ccmp_init(int key_idx) · line 77
Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +1
-1@@ -73,7 +73,7 @@ static void *ieee80211_ccmp_init(int key_idx) priv->tfm = (void *)crypto_alloc_cipher ("aes" ,0 ,CRYPTO_ALG_ASYNC );if (IS_ERR (priv->tfm)) { -printk (KERN_DEBUG "ieee80211_crypt_ccmp: could not allocate " +pr_debug ("ieee80211_crypt_ccmp: could not allocate " "crypto API aes\n" );
In each case, the second line of arguments could be aligned with the left side of the first argument, as was done before.
julia
Quoted 55 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +5
-6priv->tfm =NULL ; goto fail;@@ -284,7 +284,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) keyidx = pos[3 ];if (!(keyidx & (1 <<5 ))) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: received packet without ExtIV" +pr_debug ("CCMP: received packet without ExtIV" " flag from %pM\n" , hdr->addr2); } key->dot11RSNAStatsCCMPFormatErrors++;@@ -292,13 +292,13 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) } keyidx >>=6 ;if (key->key_idx != keyidx) { -printk (KERN_DEBUG "CCMP: RX tkey->key_idx=%d frame " +pr_debug ("CCMP: RX tkey->key_idx=%d frame " "keyidx=%d priv=%p\n" , key->key_idx, keyidx, priv);return -6 ; }if (!key->key_set) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: received packet from %pM" +pr_debug ("CCMP: received packet from %pM" " with keyid=%d that does not have a configured" " key\n" , hdr->addr2, keyidx); }@@ -315,7 +315,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (memcmp (pn, key->rx_pn,CCMP_PN_LEN ) <=0 ) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: replay detected: STA=%pM" +pr_debug ("CCMP: replay detected: STA=%pM" " previous PN %pm received PN %pm\n" , hdr->addr2, key->rx_pn, pn); }@@ -353,7 +353,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (memcmp (mic, a,CCMP_MIC_LEN ) !=0 ) {if (net_ratelimit ()) { -printk (KERN_DEBUG "CCMP: decrypt failed: STA=" +pr_debug ("CCMP: decrypt failed: STA=" "%pM\n" , hdr->addr2); } key->dot11RSNAStatsCCMPDecryptErrors++; --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425245283-10867-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.