[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS printk fails for large unsigned integers
- Date: Fri, 27 Nov 2009 13:32:01 -0600
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: RTEMS printk fails for large unsigned integers
On 11/27/2009 01:27 PM, Ingolf Steinbach wrote:
> 2009/11/27 Joris van Rantwijk<jorisvr at sron.nl>:
>>> Furthermore, printing variable greater LONG_MAX with "%u" formating is
>>> invalid/non-portable code.
>> What would be the purpose of "%u" in that case?
>> Where is the documentation for printk that declares this use to be invalid?
> I currently do not know the documentation of printk(). But if it is
> similar to printf(), you would probably have to use "%lu" rather than
> just "%u" if you output an (unsigned) *long* integer as in your case.
It should be a subset of printf. An addition to the manual
to document it would be appreciated. Please submit a patch
against spprintk which illustrates any behavior you think is
Reports without test cases are not nearly as useful both
to illustrate the problem and to ensure that it stays fixed.
> Kind regards
> rtems-users mailing list
> rtems-users at rtems.org