linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Toshiaki Yamane <yamanetoshi@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mark Einon <mark.einon@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging/et131x: fix checkpatch warnings
Date: Tue, 17 Jul 2012 18:16:15 -0700	[thread overview]
Message-ID: <1342574175.2012.12.camel@joe2Laptop> (raw)
In-Reply-To: <1342573366-8167-1-git-send-email-yamanetoshi@gmail.com>

On Wed, 2012-07-18 at 10:02 +0900, Toshiaki Yamane wrote:
> Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>

Hello.  Just some trivial notes:

> diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
[]
> @@ -2553,8 +2555,8 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter)
[]
> -	printk(KERN_INFO "Packet Status Ring %lx\n",
> -	    (unsigned long) rx_ring->ps_ring_physaddr);
> +	pr_info("Packet Status Ring %lx\n",
> +		(unsigned long) rx_ring->ps_ring_physaddr);
> @@ -2574,7 +2576,7 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter)
[]
> -	printk(KERN_INFO "PRS %lx\n", (unsigned long)rx_ring->rx_status_bus);
> +	pr_info("PRS %lx\n", (unsigned long)rx_ring->rx_status_bus);

These might as well use %p without a cast to unsigned long
	pr_info("Packet Status Ring: %p\n", rx_ring->ps_ring_phydaddr);
[]
	pr_info("PRS: %p\n", rx_ring->rx_status_bus);

[]
> @@ -5186,8 +5188,8 @@ static int et131x_set_mac_addr(struct net_device *netdev, void *new_mac)
[]
> -	printk(KERN_INFO "%s: Setting MAC address to %pM\n",
> -			netdev->name, netdev->dev_addr);
> +	pr_info("%s: Setting MAC address to %pM\n",
> +		netdev->name, netdev->dev_addr);

Please use netdev_<level> when there is a
struct net_device * available.

	netdev_info(netdev, "Setting MAC address to %pM\n", netdev->dev_addr);



  reply	other threads:[~2012-07-18  1:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 12:41 [PATCH] staging/et131x: fix checkpatch warnings Toshiaki Yamane
2012-07-18  1:02 ` Toshiaki Yamane
2012-07-18  1:16   ` Joe Perches [this message]
2012-07-18 11:32     ` Toshiaki Yamane
2012-07-18 17:53       ` Joe Perches
2012-07-19  0:05         ` Toshiaki Yamane
2012-07-19  0:10           ` Joe Perches
2012-07-19  0:14             ` Toshiaki Yamane
2012-07-18 11:44 ` Toshiaki Yamane
2012-07-19  1:34 ` Toshiaki Yamane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342574175.2012.12.camel@joe2Laptop \
    --to=joe@perches.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.einon@gmail.com \
    --cc=yamanetoshi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).