RTEMS printk fails for large unsigned integers

Ralf Corsepius ralf.corsepius at rtems.org
Fri Nov 27 15:44:33 UTC 2009


On 11/27/2009 04:27 PM, Joris van Rantwijk wrote:
> Hello,
>
> I noticed that printk("%u", x) prints "0" for values of x larger than
> LONG_MAX.
> Same for %x and %p.

Which target/BSP? printk is target/BSP specific.

Furthermore, printing variable greater LONG_MAX with "%u" formating is 
invalid/non-portable code.

Ralf




More information about the users mailing list