public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] DM9000: fix build when debugging is enabled
@ 2010-03-24 22:21 Mike Frysinger
  2010-04-05  5:22 ` Ben Warren
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-03-24 22:21 UTC (permalink / raw)
  To: u-boot

From: Brent Kandetzki <BrentK@teleco.com>

The debug code uses the gcc __func__ define, but tries to use it as a
static const string which no longer works.  So treat it like a normal
printf string argument.

Signed-off-by: Brent Kandetzki <BrentK@teleco.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 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.7.0.2

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

* [U-Boot] [PATCH] DM9000: fix build when debugging is enabled
  2010-03-24 22:21 [U-Boot] [PATCH] DM9000: fix build when debugging is enabled Mike Frysinger
@ 2010-04-05  5:22 ` Ben Warren
  2010-04-06  6:04   ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Warren @ 2010-04-05  5:22 UTC (permalink / raw)
  To: u-boot

Hi Mike,

On 3/24/2010 3:21 PM, Mike Frysinger wrote:
> From: Brent Kandetzki<BrentK@teleco.com>
>
> The debug code uses the gcc __func__ define, but tries to use it as a
> static const string which no longer works.  So treat it like a normal
> printf string argument.
>
> Signed-off-by: Brent Kandetzki<BrentK@teleco.com>
> Signed-off-by: Mike Frysinger<vapier@gentoo.org>
> ---
>   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);	\
>    
An identical patch was applied in December (commit 
076cd24cb4278c125c8f36df386852dc0fcfefae).  Am I missing something?

regards,
Ben

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

* [U-Boot] [PATCH] DM9000: fix build when debugging is enabled
  2010-04-05  5:22 ` Ben Warren
@ 2010-04-06  6:04   ` Mike Frysinger
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-04-06  6:04 UTC (permalink / raw)
  To: u-boot

On Monday 05 April 2010 01:22:39 Ben Warren wrote:
> On 3/24/2010 3:21 PM, Mike Frysinger wrote:
> > From: Brent Kandetzki<BrentK@teleco.com>
> > 
> > The debug code uses the gcc __func__ define, but tries to use it as a
> > static const string which no longer works.  So treat it like a normal
> > printf string argument.
> > 
> > Signed-off-by: Brent Kandetzki<BrentK@teleco.com>
> > Signed-off-by: Mike Frysinger<vapier@gentoo.org>
> > ---
> > 
> >   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);	\
> 
> An identical patch was applied in December (commit
> 076cd24cb4278c125c8f36df386852dc0fcfefae).  Am I missing something?

nope ... i was looking at the 2009.11 release apparently
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100406/ccbaba3a/attachment.pgp 

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

end of thread, other threads:[~2010-04-06  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 22:21 [U-Boot] [PATCH] DM9000: fix build when debugging is enabled Mike Frysinger
2010-04-05  5:22 ` Ben Warren
2010-04-06  6:04   ` Mike Frysinger

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