RTEMS printk fails for large unsigned integers
Ingolf Steinbach
ingolf.steinbach at googlemail.com
Fri Nov 27 19:27:15 UTC 2009
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
More information about the users
mailing list