netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Daniele Venzano <webvenza@libero.it>
Cc: NetDev <netdev@oss.sgi.com>
Subject: Re: [PATCH 2/5] sis900 printk and stack usage audit
Date: Sat, 11 Dec 2004 14:09:10 -0500	[thread overview]
Message-ID: <41BB45D6.2090608@pobox.com> (raw)
In-Reply-To: <20041208110426.GC31707@picchio.gall.it>

Daniele Venzano wrote:
> @@ -455,10 +455,15 @@
>  	if (ret)
>  		goto err_unmap_rx;
>  		
> +	pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &revision);
> +
> +	if(sis900_debug > 0)
> +		printk(KERN_DEBUG "%s: detected revision %2.2x,"
> +				"trying to get MAC address...\n",
> +				net_dev->name, revision);
> +
>  	/* Get Mac address according to the chip revision */
> -	pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &revision);
>  	ret = 0;
> -

use netif_msg_* bitmap


> @@ -542,9 +549,14 @@
>  		for(i = 0; i < 2; i++)
>  			mii_status = mdio_read(net_dev, phy_addr, MII_STATUS);
>  
> -		if (mii_status == 0xffff || mii_status == 0x0000)
> +		if (mii_status == 0xffff || mii_status == 0x0000) {
>  			/* the mii is not accessible, try next one */
> +			if (sis900_debug > 0)
> +				printk(KERN_DEBUG "%s: MII at address %d"
> +						" not accessible\n",
> +						net_dev->name, phy_addr);
>  			continue;
> +		}
>  		

ditto


> @@ -568,14 +580,15 @@
>  
>  		for (i = 0; mii_chip_table[i].phy_id1; i++)
>  			if ((mii_phy->phy_id0 == mii_chip_table[i].phy_id0 ) &&
> -			    ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1)){
> +			    ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1))
> +			{

CodingStyle:  the brace following an 'if' does not exist on a line by 
itself.

	Jeff

  reply	other threads:[~2004-12-11 19:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08 10:47 [PATCH 0/5] sis900 printk and stack usage audit Daniele Venzano
2004-12-08 11:01 ` [PATCH 1/5] " Daniele Venzano
2004-12-11 19:04   ` Jeff Garzik
2004-12-11 19:06   ` Jeff Garzik
2004-12-12  8:15     ` Daniele Venzano
2004-12-08 11:04 ` [PATCH 2/5] " Daniele Venzano
2004-12-11 19:09   ` Jeff Garzik [this message]
2004-12-12  8:19     ` Daniele Venzano
2004-12-08 11:06 ` [PATCH 3/5] " Daniele Venzano
2004-12-11 19:09   ` Jeff Garzik
2004-12-08 11:08 ` [PATCH 4/5] " Daniele Venzano
2004-12-11 19:11   ` Jeff Garzik
2004-12-12  8:23     ` Daniele Venzano
2004-12-08 11:10 ` [PATCH 5/5] " Daniele Venzano
2004-12-11 19:11   ` Jeff Garzik
2004-12-12  8:27     ` Daniele Venzano

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=41BB45D6.2090608@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=netdev@oss.sgi.com \
    --cc=webvenza@libero.it \
    /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).