How to snprintf uint64_t?

Using WSL2, NCS 2, VSCode.

I tried to snprintf("%ull\n", (uint64_t)5) but I only see "ul" printed to the screen.

Here are the relevant prj.conf values

CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_STD_CPP20=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_CBPRINTF_FP_SUPPORT=y
Can you tell me the right way to print uint64_t values in decimal?
Thanks.
Parents Reply Children
Related