From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francois Romieu Subject: Re: [PATCH 02/11] ixgb: Fix the use of dprintk rather than printk Date: Sat, 22 Apr 2006 11:03:01 +0200 Message-ID: <20060422090301.GB26666@electric-eye.fr.zoreil.com> References: <20060422010016.24255.50772.stgit@jk-desktop.jf.intel.com> <20060422010034.24255.21136.stgit@jk-desktop.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff Garzik , netdev@vger.kernel.org, David Miller , John Rociak , Jesse Brandeburg Return-path: Received: from zeus1.kernel.org ([204.152.191.4]:45973 "EHLO zeus1.kernel.org") by vger.kernel.org with ESMTP id S1750761AbWDVR0x (ORCPT ); Sat, 22 Apr 2006 13:26:53 -0400 Received: from fr.zoreil.com (electric-eye.fr.zoreil.com [213.41.134.224]) by zeus1.kernel.org (8.13.1/8.13.1) with ESMTP id k3M97kg4031062 for ; Sat, 22 Apr 2006 09:07:47 GMT To: Jeff Kirsher Content-Disposition: inline In-Reply-To: <20060422010034.24255.21136.stgit@jk-desktop.jf.intel.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Jeff Kirsher : [...] > diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h > index c83271b..a696c33 100644 > --- a/drivers/net/ixgb/ixgb.h > +++ b/drivers/net/ixgb/ixgb.h [...] > @@ -192,6 +197,7 @@ struct ixgb_adapter { > > /* structs defined in ixgb_hw.h */ > struct ixgb_hw hw; > + u16 msg_enable; > struct ixgb_hw_stats stats; > #ifdef CONFIG_PCI_MSI > boolean_t have_msi; > diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c > index d38ade5..e8d83de 100644 > --- a/drivers/net/ixgb/ixgb_ethtool.c > +++ b/drivers/net/ixgb/ixgb_ethtool.c > @@ -251,6 +251,20 @@ ixgb_set_tso(struct net_device *netdev, > } > #endif /* NETIF_F_TSO */ > > +static uint32_t > +ixgb_get_msglevel(struct net_device *netdev) > +{ > + struct ixgb_adapter *adapter = netdev->priv; > + return adapter->msg_enable; > +} > + > +static void > +ixgb_set_msglevel(struct net_device *netdev, uint32_t data) > +{ > + struct ixgb_adapter *adapter = netdev->priv; > + adapter->msg_enable = data; > +} > + Minor nits: - you may consider removing the u{8/16/32} in drivers/net/ixgb for consistency sake in a different patch (there is a strong majority of uint_something in the driver). - s/netdev->priv/netdev_priv(netdev)/ ? [...] > @@ -486,8 +495,7 @@ ixgb_probe(struct pci_dev *pdev, > netif_carrier_off(netdev); > netif_stop_queue(netdev); > > - printk(KERN_INFO "%s: Intel(R) PRO/10GbE Network Connection\n", > - netdev->name); > + DPRINTK(PROBE, INFO, "Intel(R) PRO/10GbE Network Connection\n"); It could probably be factored out with ixgb_driver_string. -- Ueimor