Hello,
Float printk (%f and %0.2f) is not working. I use newlib and activated floats for print and scan support without success.
Configuration:
Version from 31 january.
Hello,
Float printk (%f and %0.2f) is not working. I use newlib and activated floats for print and scan support without success.
Configuration:
Version from 31 january.
Hello,
You need to use printf instead for printing floats. However, by default, printk is deferred and printf is not, so you may get logs in weird order. You may disable deferred printk in configuration by disabling LOG_PRINTK, but this has also other consequences.
Hello,
Sorry if I was not clear: it's %f that is not converted as float string but continue to be %f on the display.
Yes. Use "printf" method instead of "printk". printk is very limited but design to be really quick, to print logs when the device faulted.
It works, thank you Aleksander.