Re: [pjsip] Problem with pj_ansi_snprintf

S
samuel.vinson
Fri, Sep 14, 2007 7:55 AM

Hi,

Yes I'm using devkitpro r20. For libraries I use svn trunk of

  • libnds
  • dswifi
  • libfat

But I don't use svn trunk for gcc and newlib.

Samuel

Message du 14/09/07 09:51
De : "Darmawan Salihun"
A : "pjsip embedded/DSP SIP discussion"
Copie à :
Objet : Re: [pjsip] Problem with pj_ansi_snprintf

Hi,

On 9/13/07, Samuel Vinson samuelv@laposte.net wrote:
Yes, I implemented your solution but in this case I don't use pjsip

functionality. Perhaps, the problem is present somewhere in pjsip.

It's using newlib, do you know if this problem becomes from newlib ?

I'm curious, as to the development environment that you use. Are you using DevkitPro (http://sourceforge.net/projects/devkitpro/ )? I've only been involved in GBA development a few years ago ;-).

In my experience, the ported libc is sometimes buggy. But, I don't know for sure now, because it must've improved quite significant over the years.

Regards,

Darmawan Salihun

-= Human knowledge belongs to the world =- >
[ (pas de nom de fichier) (0.2 Ko) ]

Hi, Yes I'm using devkitpro r20. For libraries I use svn trunk of - libnds - dswifi - libfat But I don't use svn trunk for gcc and newlib. Samuel > Message du 14/09/07 09:51 > De : "Darmawan Salihun" > A : "pjsip embedded/DSP SIP discussion" > Copie à : > Objet : Re: [pjsip] Problem with pj_ansi_snprintf > > Hi, > > On 9/13/07, Samuel Vinson <samuelv@laposte.net> wrote: Yes, I implemented your solution but in this case I don't use pjsip > functionality. Perhaps, the problem is present somewhere in pjsip. > > It's using newlib, do you know if this problem becomes from newlib ? > > I'm curious, as to the development environment that you use. Are you using DevkitPro (http://sourceforge.net/projects/devkitpro/ )? I've only been involved in GBA development a few years ago ;-). > > In my experience, the ported libc is sometimes buggy. But, I don't know for sure now, because it must've improved quite significant over the years. > > Regards, > > Darmawan Salihun > -------------------------------------------------------------------- > -= Human knowledge belongs to the world =- > > [ (pas de nom de fichier) (0.2 Ko) ]
BP
Benny Prijono
Sat, Sep 15, 2007 4:58 PM

samuel.vinson wrote:

But I don't use svn trunk for gcc and newlib.

Sorry for my ignorance, I'm not quite familiar with NDS development.
Do you compile newlib from the source?

If so, how about hacking newlib/libc/stdio/vfprintf.c. Look for the
string "(null)", and replace it with empty string and set the size
variable to zero.

On CVS version of newlib, it's in line 1033:
cp = "(null)";
size = 6;

Can't guarantee that this hack will not make your NDS goes kaboom
though. :)

-benny

samuel.vinson wrote: > > But I don't use svn trunk for gcc and newlib. > Sorry for my ignorance, I'm not quite familiar with NDS development. Do you compile newlib from the source? If so, how about hacking newlib/libc/stdio/vfprintf.c. Look for the string "(null)", and replace it with empty string and set the size variable to zero. On CVS version of newlib, it's in line 1033: cp = "(null)"; size = 6; Can't guarantee that this hack will not make your NDS goes kaboom though. :) -benny