public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] net: dm9000x: fix debug output
@ 2009-12-09  8:38 Thomas Weber
  2009-12-14  6:02 ` Ben Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Weber @ 2009-12-09  8:38 UTC (permalink / raw)
  To: u-boot

commit 60f61e6d7655400bb785a2ef637581679941f6d1 breaks compile with gcc by introducing __func__
instead of constant string "func" in the macro call but missed to change the macro.

Signed-off-by: Thomas Weber <weber@corscience.de>
---
 drivers/net/dm9000x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
index 73dd335..a7fef56 100644
--- a/drivers/net/dm9000x.c
+++ b/drivers/net/dm9000x.c
@@ -75,7 +75,7 @@ TODO: external MII is not functional, only internal at the moment.
 #define DM9000_DMP_PACKET(func,packet,length)  \
 	do { \
 		int i; 							\
-		printf(func ": length: %d\n", length);			\
+		printf("%s: length: %d\n", func, length);		\
 		for (i = 0; i < length; i++) {				\
 			if (i % 8 == 0)					\
 				printf("\n%s: %02x: ", func, i);	\
-- 
1.6.4.4

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

* [U-Boot] [PATCH v2] net: dm9000x: fix debug output
  2009-12-09  8:38 [U-Boot] [PATCH v2] net: dm9000x: fix debug output Thomas Weber
@ 2009-12-14  6:02 ` Ben Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2009-12-14  6:02 UTC (permalink / raw)
  To: u-boot

Thomas,

Thomas Weber wrote:
> commit 60f61e6d7655400bb785a2ef637581679941f6d1 breaks compile with gcc by introducing __func__
> instead of constant string "func" in the macro call but missed to change the macro.
>
> Signed-off-by: Thomas Weber <weber@corscience.de>
> ---
>  drivers/net/dm9000x.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>   
Applied to net/next.

thanks,
Ben

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

end of thread, other threads:[~2009-12-14  6:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09  8:38 [U-Boot] [PATCH v2] net: dm9000x: fix debug output Thomas Weber
2009-12-14  6:02 ` Ben Warren

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