public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] ARM926: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is defined
@ 2007-12-18 23:43 Hebbar
  2007-12-19  0:03 ` Hebbar
  2008-01-09  7:51 ` Wolfgang Denk
  0 siblings, 2 replies; 10+ messages in thread
From: Hebbar @ 2007-12-18 23:43 UTC (permalink / raw)
  To: u-boot


Hi,

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

--- 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);
 



Signed-off-by: Hebbar 

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-tp14408226p14408226.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-05  0:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 23:43 [U-Boot-Users] [PATCH] ARM926: Display Ethernet info in do_bdinfo only if CONFIG_CMD_NET is defined Hebbar
2007-12-19  0:03 ` Hebbar
2008-02-04 22:18   ` Wolfgang Denk
2008-02-05  0:36     ` Gururaja Hebbar K R
2008-01-09  7:51 ` Wolfgang Denk
2008-01-31  5:10   ` Gururaja Hebbar K R
2008-02-01 12:01   ` [U-Boot-Users] [PATCH] ARM926: Display Ethernet info indo_bdinfo " Peter Pearse
2008-02-01 14:02     ` [U-Boot-Users] [PATCH] ARM926: Display Ethernet infoindo_bdinfo " Rune Torgersen
2008-02-02 11:30     ` [U-Boot-Users] [PATCH] ARM926: Display Ethernet info indo_bdinfo " Haavard Skinnemoen
2008-02-02 21:58       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox