summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2009-07-23 03:01:03 -0400
committerBen Warren <biggerbadderben@gmail.com>2009-08-07 17:32:16 -0700
commit0ebf04c607b54a352629dcf7e76b76f1785dae54 (patch)
tree0beff99c94a3db8d1e9cc5f3b786ae7474085f4c /net/eth.c
parent187af954cf7958c24efcf0fd62289bbdb4f1f24e (diff)
downloadu-boot-imx-0ebf04c607b54a352629dcf7e76b76f1785dae54.zip
u-boot-imx-0ebf04c607b54a352629dcf7e76b76f1785dae54.tar.gz
u-boot-imx-0ebf04c607b54a352629dcf7e76b76f1785dae54.tar.bz2
minor debug cleanups in ./net
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/eth.c b/net/eth.c
index 8e1d692..b4f3b1a 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -263,7 +263,7 @@ void eth_set_enetaddr(int num, char *addr) {
struct eth_device *dev;
unsigned char enetaddr[6];
- debug ("eth_set_enetaddr(num=%d, addr=%s)\n", num, addr);
+ debug("eth_set_enetaddr(num=%d, addr=%s)\n", num, addr);
if (!eth_devices)
return;
@@ -278,7 +278,7 @@ void eth_set_enetaddr(int num, char *addr) {
return;
}
- debug ( "Setting new HW address on %s\n"
+ debug("Setting new HW address on %s\n"
"New Address is %pM\n",
dev->name, enetaddr);
@@ -341,14 +341,14 @@ int eth_init(bd_t *bis)
old_current = eth_current;
do {
- debug ("Trying %s\n", eth_current->name);
+ debug("Trying %s\n", eth_current->name);
if (eth_current->init(eth_current,bis) >= 0) {
eth_current->state = ETH_STATE_ACTIVE;
return 0;
}
- debug ("FAIL\n");
+ debug("FAIL\n");
eth_try_another(0);
} while (old_current != eth_current);