This patch use netdev_xxx print format instead of custom print api and printk. Signed-off-by: Glen Lee <glen.lee@xxxxxxxxx> --- drivers/staging/wilc1000/coreconfigurator.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 74fb556..637e8ca 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -593,15 +593,16 @@ s32 send_config_pkt(struct net_device *dev, u8 mode, struct wid *wids, if (mode == GET_CFG) { for (counter = 0; counter < count; counter++) { - PRINT_INFO(CORECONFIG_DBG, "Sending CFG packet [%d][%d]\n", !counter, - (counter == count - 1)); + netdev_info(dev, "Sending CFG packet [%d][%d]\n", + !counter, (counter == count - 1)); if (!wilc_wlan_cfg_get(dev, !counter, wids[counter].id, (counter == count - 1), drv)) { ret = -1; - printk("[Sendconfigpkt]Get Timed out\n"); + netdev_err(dev, + "[Sendconfigpkt]Get Timed out\n"); break; } } @@ -615,7 +616,8 @@ s32 send_config_pkt(struct net_device *dev, u8 mode, struct wid *wids, } } else if (mode == SET_CFG) { for (counter = 0; counter < count; counter++) { - PRINT_D(CORECONFIG_DBG, "Sending config SET PACKET WID:%x\n", wids[counter].id); + netdev_info(dev, "Sending config SET PACKET WID:%x\n", + wids[counter].id); if (!wilc_wlan_cfg_set(dev, !counter, wids[counter].id, @@ -624,7 +626,8 @@ s32 send_config_pkt(struct net_device *dev, u8 mode, struct wid *wids, (counter == count - 1), drv)) { ret = -1; - printk("[Sendconfigpkt]Set Timed out\n"); + netdev_err(dev, + "[Sendconfigpkt]Set Timed out\n"); break; } } -- 1.9.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel