All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>
Cc: "Guedes, Andre" <andre.guedes@intel.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"nhorman@redhat.com" <nhorman@redhat.com>,
	"sassmann@redhat.com" <sassmann@redhat.com>,
	"Brown, Aaron F" <aaron.f.brown@intel.com>
Subject: Re: [net-next v5 4/9] igc: Use netdev log helpers in igc_ethtool.c
Date: Tue, 19 May 2020 05:06:32 -0700	[thread overview]
Message-ID: <eed06e1b6a2ee736dd9d520962aacb31bce88c18.camel@perches.com> (raw)
In-Reply-To: <61CC2BC414934749BD9F5BF3D5D94044986A0C1E@ORSMSX112.amr.corp.intel.com>

On Tue, 2020-05-19 at 01:35 +0000, Kirsher, Jeffrey T wrote:
> > -----Original Message-----
> > From: Joe Perches <joe@perches.com>
> > Sent: Monday, May 18, 2020 18:22
> > To: Kirsher, Jeffrey T <jeffrey.t.kirsher@intel.com>; davem@davemloft.net
> > Cc: Guedes, Andre <andre.guedes@intel.com>; netdev@vger.kernel.org;
> > nhorman@redhat.com; sassmann@redhat.com; Brown, Aaron F
> > <aaron.f.brown@intel.com>
> > Subject: Re: [net-next v5 4/9] igc: Use netdev log helpers in igc_ethtool.c
> > 
> > On Mon, 2020-05-18 at 18:03 -0700, Jeff Kirsher wrote:
> > > This patch converts all dev_* calls to netdev_*.
> > []
> > > diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c
> > > b/drivers/net/ethernet/intel/igc/igc_ethtool.c
> > []
> > > @@ -1904,7 +1905,7 @@ static void igc_diag_test(struct net_device
> > *netdev,
> > >  	bool if_running = netif_running(netdev);
> > > 
> > >  	if (eth_test->flags == ETH_TEST_FL_OFFLINE) {
> > > -		netdev_info(adapter->netdev, "offline testing starting");
> > > +		netdev_info(adapter->netdev, "Offline testing starting");
> > 
> > several missing '\n' format terminations
> [Kirsher, Jeffrey T] 
> 
> Your right, these never had them, which is why it was not caught.
> I am fine with adding the terminating \n, if that is what is requested.
> Andre was just trying to fix the message to properly capitalize the first letter of the message.

What's odd is no other intel driver uses the same logging
format even though many use the same message.

Likely there's little value in capitalization.

$ git grep -i -n "offline testing starting" drivers/net/ethernet/intel
drivers/net/ethernet/intel/e1000/e1000_ethtool.c:1524:          e_info(hw, "offline testing starting\n");
drivers/net/ethernet/intel/e1000e/ethtool.c:1818:               e_info("offline testing starting\n");
drivers/net/ethernet/intel/i40e/i40e_ethtool.c:2536:            netif_info(pf, drv, netdev, "offline testing starting\n");
drivers/net/ethernet/intel/ice/ice_ethtool.c:807:               netdev_info(netdev, "offline testing starting\n");
drivers/net/ethernet/intel/igb/igb_ethtool.c:2025:              dev_info(&adapter->pdev->dev, "offline testing starting\n");
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c:2095:          e_info(hw, "offline testing starting\n");
drivers/net/ethernet/intel/ixgbevf/ethtool.c:744:               hw_dbg(&adapter->hw, "offline testing starting\n");



  reply	other threads:[~2020-05-19 12:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  1:03 [net-next v5 0/9][pull request] 1GbE Intel Wired LAN Driver Updates 2020-05-18 Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 1/9] igc: Add ECN support for TSO Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 2/9] igc: Use netdev log helpers in igc_main.c Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 3/9] igc: add support to eeprom, registers and link self-tests Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 4/9] igc: Use netdev log helpers in igc_ethtool.c Jeff Kirsher
2020-05-19  1:22   ` Joe Perches
2020-05-19  1:35     ` Kirsher, Jeffrey T
2020-05-19 12:06       ` Joe Perches [this message]
2020-05-19  1:03 ` [net-next v5 5/9] igc: Use netdev log helpers in igc_ptp.c Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 6/9] igc: Use netdev log helpers in igc_dump.c Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 7/9] igc: Use netdev log helpers in igc_base.c Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 8/9] igc: Remove unneeded definition Jeff Kirsher
2020-05-19  1:03 ` [net-next v5 9/9] igc: Remove unneeded register Jeff Kirsher
2020-05-19 19:02 ` [net-next v5 0/9][pull request] 1GbE Intel Wired LAN Driver Updates 2020-05-18 David Miller

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=eed06e1b6a2ee736dd9d520962aacb31bce88c18.camel@perches.com \
    --to=joe@perches.com \
    --cc=aaron.f.brown@intel.com \
    --cc=andre.guedes@intel.com \
    --cc=davem@davemloft.net \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@redhat.com \
    --cc=sassmann@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.