tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cost...@covalent.net
Subject RE: [4.1.3] Binaries uploaded
Date Mon, 10 Jun 2002 21:05:27 GMT
On Mon, 10 Jun 2002, Ignacio J. Ortega wrote:

> > De: jean-frederic clere [mailto:jfrederic.clere@fujitsu-siemens.com]
> > Enviado el: 10 de junio de 2002 16:21
> 
> > That is the %p in the format string. Using %#lx instead fixes 
> > the display:
> 
> Where i can found information about the exact format specifiers
> apr_psprintf accepts?
> 
> Checked docs and code, but docs are at least brief :), and from code
> it's hard to get the complete list of specifiers supported..
> 
> I have a patch that changes all %p formatter by  %d, not the one JFC
> proposes, i guess that a %d for debug messages will be more than
> sufficient.. 


%#lx is the equivalent of %p, I didn't know it is not portable.
%d is not good ( since it'll consume an int, not a pointer which is 
usually a long ). 

We should use APR and the formats supported by apr consistently, 
that will prevent further OS-specific problems with printf.

Costin



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message