Re: [PATCH 3/3] wlan-ng/prism2mgmt.c Replace printk(...) with netdev_warn, netdev_err

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 17, 2012 at 02:38:03PM +0100, Sebastian Wankerl wrote:
> @@ -261,15 +265,17 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp)
>  					HFA384x_RID_CREATEIBSS,
>  					HFA384x_CREATEIBSS_JOINCREATEIBSS);
>  		if (result) {
> -			printk(KERN_ERR "Failed to set CREATEIBSS.\n");
> +			netdev_err(wlandev->netdev,
> +				"Failed to set CREATEIBSS.\n");
>  			msg->resultcode.data =
>  			    P80211ENUM_resultcode_implementation_failure;
>  			goto exit;
>  		}
>  		result = hfa384x_drvr_enable(hw, 0);
>  		if (result) {
> -			printk(KERN_ERR "drvr_enable(0) failed. "
> -			       "result=%d\n", result);
> +			netdev_err(wlandev->netdev,
> +				"drvr_enable(0) failed. " "result=%d\n",
                                                        ^^^

Delete this.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux