Skip to contentSkip to conversation

net: dm9000x: fix debug output

PATCH New Thomas Weber 2 participants 2 messages Dec 9, 2009 – Dec 14, 2009 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: dm9000x: fix debug output

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

---
 drivers/net/dm9000x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/dm9000x.c +1 -1
index 73dd335..a7fef56 100644
@@ -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);	\
Signature · 1 line
1.6.4.4
Applied
#1 lore raw

PATCH v2 1/1 net: dm9000x: fix debug output

Thomas,

Quoted 8 lines · Thomas Weber

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

---
 drivers/net/dm9000x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied to net/next.

thanks,
Ben