staging: vt6655: wcmd.c: fix print priority warning
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Wed, 22 Oct 2014 13:30:40 +0000 (15:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 00:22:53 +0000 (08:22 +0800)
This patch fixes the following warning generated by checkpatch.pl
for the file wcmd.c

WARNING: printk() should include KERN_ facility level

printk was replaced by netdev_err since providing printk with the
facility level KERN_ERR generated the printing priority warning.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/wcmd.c

index 985e1b99362ddc45006d0ea346faa90424937b7a..7302196eda03494fb646ba9964051f68e3b13c1a 100644 (file)
@@ -665,7 +665,8 @@ vCommandTimer(
                        add_timer(&pDevice->sTimerTxData);
 
                } else if (pMgmt->eCurrState < WMAC_STATE_ASSOCPENDING) {
-                       printk("WLAN_ASSOCIATE_WAIT:Association Fail???\n");
+                       netdev_err(pDevice->dev,
+                                  "WLAN_ASSOCIATE_WAIT:Association Fail???\n");
                } else if (pDevice->byLinkWaitCount <= 4) {    //mike add:wait another 2 sec if associated_frame delay!
                        pDevice->byLinkWaitCount++;
                        pr_debug("WLAN_ASSOCIATE_WAIT:wait %d times!!\n", pDevice->byLinkWaitCount);
This page took 0.025448 seconds and 5 git commands to generate.