Printf Long Support - issue in uli2a
Author: shackieyCreated Oct 28, 2023Updated Oct 28, 2023
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
Source: s-matyukevich/raspberry-pi-os