[PATCH 15/15] Staging: winbond: Replace printk usage with pr_info

From: Mike Sheldon
Date: Wed May 26 2010 - 19:42:00 EST


Patches wbusb.c to replace printk usage (missing KERN_ levels) with pr_info.

Signed-off-by: Mike Sheldon <mike@xxxxxxxxxxxxx>
---
drivers/staging/winbond/wbusb.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c
index 681419d..1bad709 100644
--- a/drivers/staging/winbond/wbusb.c
+++ b/drivers/staging/winbond/wbusb.c
@@ -77,18 +77,18 @@ static int wbsoft_add_interface(struct ieee80211_hw *dev,
static void wbsoft_remove_interface(struct ieee80211_hw *dev,
struct ieee80211_vif *vif)
{
- printk("wbsoft_remove interface called\n");
+ pr_info("wbsoft_remove interface called\n");
}

static void wbsoft_stop(struct ieee80211_hw *hw)
{
- printk(KERN_INFO "%s called\n", __func__);
+ pr_info("%s called\n", __func__);
}

static int wbsoft_get_stats(struct ieee80211_hw *hw,
struct ieee80211_low_level_stats *stats)
{
- printk(KERN_INFO "%s called\n", __func__);
+ pr_info("%s called\n", __func__);
return 0;
}

@@ -159,13 +159,13 @@ static void hal_set_current_channel_ex(struct hw_data *pHwData, struct chan_info
if (pHwData->SurpriseRemove)
return;

- printk("Going to channel: %d/%d\n", channel.band, channel.ChanNo);
+ pr_info("Going to channel: %d/%d\n", channel.band, channel.ChanNo);

RFSynthesizer_SwitchingChannel(pHwData, channel); /* Switch channel */
pHwData->Channel = channel.ChanNo;
pHwData->band = channel.band;
#ifdef _PE_STATE_DUMP_
- printk("Set channel is %d, band =%d\n", pHwData->Channel,
+ pr_info("Set channel is %d, band =%d\n", pHwData->Channel,
pHwData->band);
#endif
reg->M28_MacControl &= ~0xff; /* Clean channel information field */
@@ -247,7 +247,7 @@ static int wbsoft_config(struct ieee80211_hw *dev, u32 changed)
struct wbsoft_priv *priv = dev->priv;
struct chan_info ch;

- printk("wbsoft_config called\n");
+ pr_info("wbsoft_config called\n");

/* Should use channel_num, or something, as that is already pre-translated */
ch.band = 1;
@@ -265,7 +265,7 @@ static int wbsoft_config(struct ieee80211_hw *dev, u32 changed)

static u64 wbsoft_get_tsf(struct ieee80211_hw *dev)
{
- printk("wbsoft_get_tsf called\n");
+ pr_info("wbsoft_get_tsf called\n");
return 0;
}

@@ -718,7 +718,7 @@ static int wb35_hw_init(struct ieee80211_hw *hw)

priv->sLocalPara.bAntennaNo = hal_get_antenna_number(pHwData);
#ifdef _PE_STATE_DUMP_
- printk("Driver init, antenna no = %d\n", psLOCAL->bAntennaNo);
+ pr_info("Driver init, antenna no = %d\n", psLOCAL->bAntennaNo);
#endif
hal_get_hw_radio_off(pHwData);

@@ -792,7 +792,7 @@ static int wb35_probe(struct usb_interface *intf,
endpoint = &interface->endpoint[0].desc;

if (endpoint[2].wMaxPacketSize == 512) {
- printk("[w35und] Working on USB 2.0\n");
+ pr_info("[w35und] Working on USB 2.0\n");
pWbUsb->IsUsb20 = 1;
}

@@ -850,7 +850,7 @@ static void wb35_hw_halt(struct wbsoft_priv *adapter)
/* Turn off Rx and Tx hardware ability */
hal_stop(&adapter->sHwData);
#ifdef _PE_USB_INI_DUMP_
- printk("[w35und] Hal_stop O.K.\n");
+ pr_info("[w35und] Hal_stop O.K.\n");
#endif
/* Waiting Irp completed */
msleep(100);
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/