[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130325191732.GA22609@kroah.com>
Date: Mon, 25 Mar 2013 12:17:32 -0700
From: Greg KH <gregkh@...uxfoundation.org>
To: Nick Østergaard <oe.nick@...il.com>
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: wlan-ng: prism2usb.c: fix printk(KERN_ERR... to
pr_err(...
On Mon, Mar 25, 2013 at 08:02:28PM +0100, Nick Østergaard wrote:
> Fixed checkpatch.pl warning, changing fix printk(KERN_ERR... to
> pr_err(...
>
> Signed-off-by: Nick Østergaard <oe.nick@...il.com>
> ---
> drivers/staging/wlan-ng/prism2usb.c | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c
> index b1aed1f..0f2706a 100644
> --- a/drivers/staging/wlan-ng/prism2usb.c
> +++ b/drivers/staging/wlan-ng/prism2usb.c
> @@ -113,14 +113,14 @@ static int prism2sta_probe_usb(struct usb_interface *interface,
> dev = interface_to_usbdev(interface);
> wlandev = create_wlan();
> if (wlandev == NULL) {
> - printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
> + pr_err("%s: Memory allocation failure.\n", dev_info);
Please use dev_err() instead, as you do have a valid struct device in
which to use.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists