s-matyukevich / raspberry-pi-os

Learning operating system development using Linux kernel and Raspberry Pi
MIT License
12.98k stars 1.28k forks source link

Printf Long Support - issue in uli2a #261

Open shackiey opened 8 months ago

shackiey commented 8 months ago

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