Zephyr: I broke snprintk

Probably due to an upgrade some previously working code that used snprintk is now not working. It copies the format string into the destination string instead of ... formatting.

It says:

		char heading_text[4];
		snprintk(heading_text, 4, "%03f", heading);

Where heading is a single precision float. prj.conf is:

CONFIG_FPU=y
CONFIG_POLL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_SPEED_OPTIMIZATIONS=y

The call returns 4 so it's obviously quite pleased with itself. Has anyone seen this before?

Parents Reply Children
No Data