Unable to print long long

I am unable to print a long long. As a simple test I tried to print this:

			uint64_t long_num1 = 0x10000000000;
			printk("%llu\n", long_num1);

			int64_t long_num2 = 0x10000000000;
			printk("%lld\n", long_num2);

			int64_t long_num3 = 0x10000000000;
			printk("%lli\n", long_num3);

All three will print 0.

I am using version 2.5.0 and added this to my prj.conf, also tried it with only CONFIG_NEWLIB_LIBC=y to start with, don't know what I am doing wrong, float is also a problem at the moment:

CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_NEWLIB_LIBC=y
CONFIG_MINIMAL_LIBC_LL_PRINTF=y

Parents Reply Children
No Data
Related