Skip to content

Commit eb5dd41

Browse files
raghav3276gregkh
authored andcommitted
Staging: rtl8192e: dot11d: Fixed printk coding style issues
Replaced 'printk' with 'netdev_' function Signed-off-by: A Raghavendra Rao <arrao@cdac.in> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 037526f commit eb5dd41

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/staging/rtl8192e/dot11d.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
133133
pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
134134
for (i = 0; i < NumTriples; i++) {
135135
if (MaxChnlNum >= pTriple->FirstChnl) {
136-
printk(KERN_INFO "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
136+
netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
137137
return;
138138
}
139139
if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
140140
pTriple->NumChnls)) {
141-
printk(KERN_INFO "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
141+
netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
142142
return;
143143
}
144144

@@ -165,7 +165,7 @@ u8 DOT11D_GetMaxTxPwrInDbm(struct rtllib_device *dev, u8 Channel)
165165
u8 MaxTxPwrInDbm = 255;
166166

167167
if (MAX_CHANNEL_NUMBER < Channel) {
168-
printk(KERN_INFO "DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
168+
netdev_info(dev->dev, "DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
169169
return MaxTxPwrInDbm;
170170
}
171171
if (pDot11dInfo->channel_map[Channel])
@@ -204,7 +204,7 @@ int ToLegalChannel(struct rtllib_device *dev, u8 channel)
204204
}
205205

206206
if (MAX_CHANNEL_NUMBER < channel) {
207-
printk(KERN_ERR "%s(): Invalid Channel\n", __func__);
207+
netdev_err(dev->dev, "%s(): Invalid Channel\n", __func__);
208208
return default_chn;
209209
}
210210

0 commit comments

Comments
 (0)