netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh_eth: coding style fixes
Date: Fri, 03 Jan 2014 13:50:29 +0400	[thread overview]
Message-ID: <52C687E5.5020100@cogentembedded.com> (raw)
In-Reply-To: <20140102.193407.23280653408847634.davem@davemloft.net>

Hello.

On 03-01-2014 4:34, David Miller wrote:

>> @@ -1952,8 +1949,8 @@ static void sh_eth_tx_timeout(struct net
>>   	netif_stop_queue(ndev);
>>
>>   	if (netif_msg_timer(mdp))
>> -		dev_err(&ndev->dev, "%s: transmit timed out, status %8.8x,"
>> -	       " resetting...\n", ndev->name, (int)sh_eth_read(ndev, EESR));
>> +		dev_err(&ndev->dev, "%s: transmit timed out, status %8.8x, resetting...\n"
>> +			ndev->name, (int)sh_eth_read(ndev, EESR));
>>
>>   	/* tx_errors count up */
>>   	ndev->stats.tx_errors++;

> You did not build test this.

    Hm, I was sure I did but you're right...

> drivers/net/ethernet/renesas/sh_eth.c: In function ‘sh_eth_tx_timeout’:
> drivers/net/ethernet/renesas/sh_eth.c:1953:4: error: expected ‘)’ before ‘ndev’
> drivers/net/ethernet/renesas/sh_eth.c:1953:4: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat]
> drivers/net/ethernet/renesas/sh_eth.c:1953:4: warning: format ‘%x’ expects a matching ‘unsigned int’ argument [-Wformat]

    Missing comma, apparently. :-(

WBR, Sergei


      parent reply	other threads:[~2014-01-03  9:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-31  0:25 [PATCH] sh_eth: coding style fixes Sergei Shtylyov
2014-01-03  0:34 ` David Miller
2014-01-03  1:42   ` Joe Perches
2014-01-03  9:52     ` Sergei Shtylyov
2014-01-03 14:28       ` Joe Perches
2014-01-03  9:50   ` Sergei Shtylyov [this message]

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=52C687E5.5020100@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=davem@davemloft.net \
    --cc=linux-sh@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).