Patch for printing long longs from diag_printf

Rutger Hofman rutger@cs.vu.nl
Thu May 31 15:37:00 GMT 2007


Currently (eCos CVS from 10 minutes ago) diag_printf truncates it 
integer-typed arguments to the size of a long or an int. For long longs, 
this is obviously wrong: it should just not truncate. See the attached 
patch to repair this.

Question: what about shorts and chars? Shouldn't those also be 
truncated? I did nothing here, because I'm not sure what to do.

Rutger Hofman
VU Amsterdam
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diag_longlong.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20070531/551d8ee7/attachment.ksh>


More information about the Ecos-patches mailing list