[U-Boot-Users] [PATCH] ARM926: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is defined

Hebbar gururajakr at sanyo.co.in
Wed Dec 19 01:03:07 CET 2007


Hi,

This Patch adds if define to bdinfo command to display ethernet information
only if CONFIG_CMD_NET is defined for arm modules.


Signed-off-by: K R Gururaja Hebbar <gururajakr at sanyo.co.in>


--- u-boot-1.3.1/common/cmd_bdinfo.c	2007-12-06 01:21:19.000000000 -0800
+++ uboot/common/cmd_bdinfo.c	2007-12-18 19:46:41.625000000 -0800
@@ -314,6 +314,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int fl
 		print_num("-> size",	bd->bi_dram[i].size);
 	}
 
+#if defined(CONFIG_CMD_NET)
 	puts ("ethaddr     =");
 	for (i=0; i<6; ++i) {
 		printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[i]);
@@ -321,6 +322,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int fl
 	puts  ( "\n"
 		"ip_addr     = ");
 	print_IPaddr (bd->bi_ip_addr);
+#endif		
 	printf ("\n"
 		"baudrate    = %d bps\n", bd->bi_baudrate);
 


I welcome comments, complaints, suggestions and advices. 

Regards 
Gururaja
-- 
View this message in context: http://www.nabble.com/-PATCH--ARM926%3A-Display-Ethernet-info-in-do_bdinfo-only-if-CONFIG_CMD_NET-is-defined-tp14408226p14408496.html
Sent from the Uboot - Users mailing list archive at Nabble.com.





More information about the U-Boot mailing list