s-matyukevich/raspberry-pi-os

Printf Long Support - issue in uli2a

shackiey opened this issue · 0 comments

With PRINTF_LONG_SUPPORT defined, if I use a printf format of %lx, I get nothing printed; where as if I use %x, I get a 32 bit value printed (as expected).
There is a defect in uli2a with "unsigned int d=1". d should be defined as "unsigned long d=1" as it needs to be as "long" as the "long" input parameter.

I would fix, but this needs fixing in all lessons.
Cheers
Dave