lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] print debug message in lwip130


From: Bill Auerbach
Subject: RE: [lwip-users] print debug message in lwip130
Date: Wed, 9 Sep 2009 15:51:04 -0400

Your CC.h (in lwip/src/include/arch) needs the following defines (I used this on the same platform as you):

 

#define U16_F "hu"

#define X16_F "hX"

#define U32_F "u"

#define X32_F "X"

#define S16_F "hd"

#define S32_F "d"

 

Bill

 

From: address@hidden [mailto:address@hidden On Behalf Of Kevin
Sent: Wednesday, September 09, 2009 12:24 PM
To: address@hidden
Cc: Kevin
Subject: [lwip-users] print debug message in lwip130

 

Hi,

I am trying to print some debug message in lwip1.3.0, but run into this error during compilation:
===========================================
.....
Compiling:  ../externals/lwip130/src/lwip-1.3.0/src/core/init.c
Compiling:  ../externals/lwip130/src/lwip-1.3.0/src/core/mem.c
../externals/lwip130/src/lwip-1.3.0/src/core/mem.c: In function 'mem_malloc':
../externals/lwip130/src/lwip-1.3.0/src/core/mem.c:570: error: expected ')' before 'S16_F'
../externals/lwip130/src/lwip-1.3.0/src/core/mem.c:570: warning: spurious trailing '%' in format
make[1]: *** [/cygdrive/c/Dominator/V0/debug/objs/mem.o] Error 1
make: *** [/cygdrive/c/Dominator/V0/../externals/lwip130/src] Error 2
===========================================

What I see at line 570 of mem.c is:
============================
  LWIP_DEBUGF(MEM_DEBUG | 2, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
============================

I am using powerpc-eabi-gcc for this compilation. What does this error mean and how to fix it? Can anybody give a hint for this message?

Thank you in advance!

Kevin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]