Commit f2b50b40 authored by Karl Relton's avatar Karl Relton Committed by Greg Kroah-Hartman

Staging: wlan-ng: Change KERN_DEBUG or pr_debug to match orig driver

Change uses of KERN_DEBUG over to pr_debug to match original driver
where messages are only needed during driver development.
Signed-off-by: default avatarKarl Relton <karllinuxtest.relton@ntlworld.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 76e3e7c4
...@@ -1174,7 +1174,7 @@ int hfa384x_cmd_download(hfa384x_t *hw, u16 mode, u16 lowaddr, ...@@ -1174,7 +1174,7 @@ int hfa384x_cmd_download(hfa384x_t *hw, u16 mode, u16 lowaddr,
int result = 0; int result = 0;
hfa384x_metacmd_t cmd; hfa384x_metacmd_t cmd;
printk(KERN_DEBUG pr_debug(
"mode=%d, lowaddr=0x%04x, highaddr=0x%04x, codelen=%d\n", "mode=%d, lowaddr=0x%04x, highaddr=0x%04x, codelen=%d\n",
mode, lowaddr, highaddr, codelen); mode, lowaddr, highaddr, codelen);
...@@ -1651,7 +1651,7 @@ hfa384x_dormem(hfa384x_t *hw, ...@@ -1651,7 +1651,7 @@ hfa384x_dormem(hfa384x_t *hw,
ctlx->outbufsize = sizeof(ctlx->outbuf.rmemreq); ctlx->outbufsize = sizeof(ctlx->outbuf.rmemreq);
printk(KERN_DEBUG pr_debug(
"type=0x%04x frmlen=%d offset=0x%04x page=0x%04x\n", "type=0x%04x frmlen=%d offset=0x%04x page=0x%04x\n",
ctlx->outbuf.rmemreq.type, ctlx->outbuf.rmemreq.type,
ctlx->outbuf.rmemreq.frmlen, ctlx->outbuf.rmemreq.frmlen,
...@@ -2035,7 +2035,7 @@ int hfa384x_drvr_flashdl_write(hfa384x_t *hw, u32 daddr, void *buf, u32 len) ...@@ -2035,7 +2035,7 @@ int hfa384x_drvr_flashdl_write(hfa384x_t *hw, u32 daddr, void *buf, u32 len)
/* NOTE: dlbuffer RID stores the address in AUX format */ /* NOTE: dlbuffer RID stores the address in AUX format */
dlbufaddr = dlbufaddr =
HFA384x_ADDR_AUX_MKFLAT(hw->bufinfo.page, hw->bufinfo.offset); HFA384x_ADDR_AUX_MKFLAT(hw->bufinfo.page, hw->bufinfo.offset);
printk(KERN_DEBUG pr_debug(
"dlbuf.page=0x%04x dlbuf.offset=0x%04x dlbufaddr=0x%08x\n", "dlbuf.page=0x%04x dlbuf.offset=0x%04x dlbufaddr=0x%08x\n",
hw->bufinfo.page, hw->bufinfo.offset, dlbufaddr); hw->bufinfo.page, hw->bufinfo.offset, dlbufaddr);
...@@ -2323,7 +2323,7 @@ int hfa384x_drvr_ramdl_enable(hfa384x_t *hw, u32 exeaddr) ...@@ -2323,7 +2323,7 @@ int hfa384x_drvr_ramdl_enable(hfa384x_t *hw, u32 exeaddr)
/* Set the download state */ /* Set the download state */
hw->dlstate = HFA384x_DLSTATE_RAMENABLED; hw->dlstate = HFA384x_DLSTATE_RAMENABLED;
} else { } else {
printk(KERN_DEBUG pr_debug(
"cmd_download(0x%04x, 0x%04x) failed, result=%d.\n", "cmd_download(0x%04x, 0x%04x) failed, result=%d.\n",
lowaddr, hiaddr, result); lowaddr, hiaddr, result);
} }
...@@ -2629,10 +2629,10 @@ int hfa384x_drvr_start(hfa384x_t *hw) ...@@ -2629,10 +2629,10 @@ int hfa384x_drvr_start(hfa384x_t *hw)
usb_kill_urb(&hw->rx_urb); usb_kill_urb(&hw->rx_urb);
goto done; goto done;
} else { } else {
printk(KERN_DEBUG pr_debug(
"First cmd_initialize() failed (result %d),\n", "First cmd_initialize() failed (result %d),\n",
result1); result1);
printk(KERN_DEBUG pr_debug(
"but second attempt succeeded. All should be ok\n"); "but second attempt succeeded. All should be ok\n");
} }
} else if (result2 != 0) { } else if (result2 != 0) {
...@@ -3301,7 +3301,7 @@ static void hfa384x_usbin_callback(struct urb *urb) ...@@ -3301,7 +3301,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
break; break;
default: default:
printk(KERN_DEBUG pr_debug(
"Unrecognized USBIN packet, type=%x, status=%d\n", "Unrecognized USBIN packet, type=%x, status=%d\n",
usbin->type, urb_status); usbin->type, urb_status);
break; break;
...@@ -3399,7 +3399,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, ...@@ -3399,7 +3399,7 @@ static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin,
* our request has been acknowledged. Odd, * our request has been acknowledged. Odd,
* but our OUT URB is still alive... * but our OUT URB is still alive...
*/ */
printk(KERN_DEBUG pr_debug(
"Causality violation: please reboot Universe, or email linux-wlan-devel@lists.linux-wlan.com\n"); "Causality violation: please reboot Universe, or email linux-wlan-devel@lists.linux-wlan.com\n");
ctlx->state = CTLX_RESP_COMPLETE; ctlx->state = CTLX_RESP_COMPLETE;
break; break;
...@@ -3552,7 +3552,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb) ...@@ -3552,7 +3552,7 @@ static void hfa384x_usbin_rx(wlandevice_t *wlandev, struct sk_buff *skb)
hfa384x_int_rxmonitor(wlandev, &usbin->rxfrm); hfa384x_int_rxmonitor(wlandev, &usbin->rxfrm);
dev_kfree_skb(skb); dev_kfree_skb(skb);
} else { } else {
printk(KERN_DEBUG pr_debug(
"Received monitor frame: FCSerr set\n"); "Received monitor frame: FCSerr set\n");
} }
break; break;
...@@ -4171,13 +4171,13 @@ static int hfa384x_isgood_pdrcode(u16 pdrcode) ...@@ -4171,13 +4171,13 @@ static int hfa384x_isgood_pdrcode(u16 pdrcode)
default: default:
if (pdrcode < 0x1000) { if (pdrcode < 0x1000) {
/* code is OK, but we don't know exactly what it is */ /* code is OK, but we don't know exactly what it is */
printk(KERN_DEBUG pr_debug(
"Encountered unknown PDR#=0x%04x, " "Encountered unknown PDR#=0x%04x, "
"assuming it's ok.\n", pdrcode); "assuming it's ok.\n", pdrcode);
return 1; return 1;
} else { } else {
/* bad code */ /* bad code */
printk(KERN_DEBUG pr_debug(
"Encountered unknown PDR#=0x%04x, " "Encountered unknown PDR#=0x%04x, "
"(>=0x1000), assuming it's bad.\n", pdrcode); "(>=0x1000), assuming it's bad.\n", pdrcode);
return 0; return 0;
......
...@@ -329,7 +329,7 @@ int skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv, ...@@ -329,7 +329,7 @@ int skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv,
skb->data + payload_offset + skb->data + payload_offset +
payload_length - 4))) { payload_length - 4))) {
/* de-wep failed, drop skb. */ /* de-wep failed, drop skb. */
printk(KERN_DEBUG pr_debug(
"Host de-WEP failed, dropping frame (%d).\n", "Host de-WEP failed, dropping frame (%d).\n",
foo); foo);
wlandev->rx.decrypt_err++; wlandev->rx.decrypt_err++;
......
...@@ -1561,7 +1561,7 @@ static int p80211wext_get_encodeext(struct net_device *dev, ...@@ -1561,7 +1561,7 @@ static int p80211wext_get_encodeext(struct net_device *dev,
if (idx) { if (idx) {
if (idx < 1 || idx > NUM_WEPKEYS) { if (idx < 1 || idx > NUM_WEPKEYS) {
printk(KERN_DEBUG pr_debug(
"get_encode_ext invalid key index [%d]\n", idx); "get_encode_ext invalid key index [%d]\n", idx);
result = -EINVAL; result = -EINVAL;
goto exit; goto exit;
......
...@@ -1096,7 +1096,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1096,7 +1096,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Disable monitor mode */ /* Disable monitor mode */
result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_DISABLE); result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_DISABLE);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to disable monitor mode, result=%d\n", "failed to disable monitor mode, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1104,7 +1104,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1104,7 +1104,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Disable port 0 */ /* Disable port 0 */
result = hfa384x_drvr_disable(hw, 0); result = hfa384x_drvr_disable(hw, 0);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to disable port 0 after sniffing, result=%d\n", "failed to disable port 0 after sniffing, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1117,7 +1117,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1117,7 +1117,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
HFA384x_RID_CNFWEPFLAGS, HFA384x_RID_CNFWEPFLAGS,
hw->presniff_wepflags); hw->presniff_wepflags);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to restore wepflags=0x%04x, result=%d\n", "failed to restore wepflags=0x%04x, result=%d\n",
hw->presniff_wepflags, result); hw->presniff_wepflags, result);
goto failed; goto failed;
...@@ -1130,7 +1130,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1130,7 +1130,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
HFA384x_RID_CNFPORTTYPE, HFA384x_RID_CNFPORTTYPE,
word); word);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to restore porttype, result=%d\n", "failed to restore porttype, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1139,7 +1139,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1139,7 +1139,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Enable the port */ /* Enable the port */
result = hfa384x_drvr_enable(hw, 0); result = hfa384x_drvr_enable(hw, 0);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to enable port to presniff setting, result=%d\n", "failed to enable port to presniff setting, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1164,7 +1164,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1164,7 +1164,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
&(hw-> &(hw->
presniff_port_type)); presniff_port_type));
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to read porttype, result=%d\n", "failed to read porttype, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1175,7 +1175,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1175,7 +1175,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
&(hw-> &(hw->
presniff_wepflags)); presniff_wepflags));
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to read wepflags, result=%d\n", "failed to read wepflags, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1183,7 +1183,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1183,7 +1183,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
hfa384x_drvr_stop(hw); hfa384x_drvr_stop(hw);
result = hfa384x_drvr_start(hw); result = hfa384x_drvr_start(hw);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to restart the card for sniffing, result=%d\n", "failed to restart the card for sniffing, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1192,7 +1192,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1192,7 +1192,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Disable the port */ /* Disable the port */
result = hfa384x_drvr_disable(hw, 0); result = hfa384x_drvr_disable(hw, 0);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to enable port for sniffing, result=%d\n", "failed to enable port for sniffing, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1210,7 +1210,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1210,7 +1210,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
hw->sniff_channel = word; hw->sniff_channel = word;
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to set channel %d, result=%d\n", "failed to set channel %d, result=%d\n",
word, result); word, result);
goto failed; goto failed;
...@@ -1224,7 +1224,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1224,7 +1224,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
HFA384x_RID_CNFPORTTYPE, HFA384x_RID_CNFPORTTYPE,
word); word);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to set porttype %d, result=%d\n", "failed to set porttype %d, result=%d\n",
word, result); word, result);
goto failed; goto failed;
...@@ -1243,7 +1243,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1243,7 +1243,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
} }
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to set wepflags=0x%04x, result=%d\n", "failed to set wepflags=0x%04x, result=%d\n",
word, result); word, result);
goto failed; goto failed;
...@@ -1269,7 +1269,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1269,7 +1269,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Enable the port */ /* Enable the port */
result = hfa384x_drvr_enable(hw, 0); result = hfa384x_drvr_enable(hw, 0);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to enable port for sniffing, result=%d\n", "failed to enable port for sniffing, result=%d\n",
result); result);
goto failed; goto failed;
...@@ -1277,7 +1277,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) ...@@ -1277,7 +1277,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
/* Enable monitor mode */ /* Enable monitor mode */
result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_ENABLE); result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_ENABLE);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"failed to enable monitor mode, result=%d\n", "failed to enable monitor mode, result=%d\n",
result); result);
goto failed; goto failed;
......
...@@ -1188,7 +1188,7 @@ static void prism2sta_inf_chinforesults(wlandevice_t *wlandev, ...@@ -1188,7 +1188,7 @@ static void prism2sta_inf_chinforesults(wlandevice_t *wlandev,
chinforesult->active = chinforesult->active =
le16_to_cpu(inf->info.chinforesult.result[n]. le16_to_cpu(inf->info.chinforesult.result[n].
active); active);
printk(KERN_DEBUG pr_debug(
"chinfo: channel %d, %s level (avg/peak)=%d/%d dB, pcf %d\n", "chinfo: channel %d, %s level (avg/peak)=%d/%d dB, pcf %d\n",
channel + 1, channel + 1,
chinforesult-> chinforesult->
...@@ -1276,7 +1276,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1276,7 +1276,7 @@ void prism2sta_processing_defer(struct work_struct *data)
wlandev->bssid, wlandev->bssid,
WLAN_BSSID_LEN); WLAN_BSSID_LEN);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTBSSID, result); HFA384x_RID_CURRENTBSSID, result);
goto failed; goto failed;
...@@ -1286,7 +1286,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1286,7 +1286,7 @@ void prism2sta_processing_defer(struct work_struct *data)
HFA384x_RID_CURRENTSSID, HFA384x_RID_CURRENTSSID,
&ssid, sizeof(ssid)); &ssid, sizeof(ssid));
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTSSID, result); HFA384x_RID_CURRENTSSID, result);
goto failed; goto failed;
...@@ -1300,7 +1300,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1300,7 +1300,7 @@ void prism2sta_processing_defer(struct work_struct *data)
HFA384x_RID_PORTSTATUS, HFA384x_RID_PORTSTATUS,
&portstatus); &portstatus);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_PORTSTATUS, result); HFA384x_RID_PORTSTATUS, result);
goto failed; goto failed;
...@@ -1366,7 +1366,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1366,7 +1366,7 @@ void prism2sta_processing_defer(struct work_struct *data)
HFA384x_RID_CURRENTBSSID, HFA384x_RID_CURRENTBSSID,
wlandev->bssid, WLAN_BSSID_LEN); wlandev->bssid, WLAN_BSSID_LEN);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTBSSID, result); HFA384x_RID_CURRENTBSSID, result);
goto failed; goto failed;
...@@ -1376,7 +1376,7 @@ void prism2sta_processing_defer(struct work_struct *data) ...@@ -1376,7 +1376,7 @@ void prism2sta_processing_defer(struct work_struct *data)
HFA384x_RID_CURRENTSSID, HFA384x_RID_CURRENTSSID,
&ssid, sizeof(ssid)); &ssid, sizeof(ssid));
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTSSID, result); HFA384x_RID_CURRENTSSID, result);
goto failed; goto failed;
...@@ -2030,7 +2030,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) ...@@ -2030,7 +2030,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
HFA384x_RID_CURRENTBSSID, HFA384x_RID_CURRENTBSSID,
wlandev->bssid, WLAN_BSSID_LEN); wlandev->bssid, WLAN_BSSID_LEN);
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTBSSID, result); HFA384x_RID_CURRENTBSSID, result);
goto done; goto done;
...@@ -2040,7 +2040,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) ...@@ -2040,7 +2040,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
HFA384x_RID_CURRENTSSID, HFA384x_RID_CURRENTSSID,
&ssid, sizeof(ssid)); &ssid, sizeof(ssid));
if (result) { if (result) {
printk(KERN_DEBUG pr_debug(
"getconfig(0x%02x) failed, result = %d\n", "getconfig(0x%02x) failed, result = %d\n",
HFA384x_RID_CURRENTSSID, result); HFA384x_RID_CURRENTSSID, result);
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment