[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS printk fails for large unsigned integers
- Date: Fri, 27 Nov 2009 20:27:15 +0100
- From: ingolf.steinbach at googlemail.com (Ingolf Steinbach)
- Subject: RTEMS printk fails for large unsigned integers
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.
Kind regards
Ingolf