zephyr/subsys
Michael Scott cdcb33b75f net: lwm2m: plain text: fix float formatting
Formatting a float32/64 value for plain text is broken.
Example for 32bit: val1=0 and val2=500000 is equivalent to 0.5

Current formatter was using %d.%d (%lld.%lld for 64bit) so
exported value was 0.500000 (or 0.5)

To fix this, for val2 use a zero-padded formatter for the maximum
length of each bit length (6 for 32bit and 9 for 64bit), and then
remove the zero characters at the end of the string.

Notes re: handling of val1/val2 signs:
- eliminate potential negative sign when converting val2 to avoid:
  a value like: 0.-5
- use negative val2 when val1 is 0 to fix small negative handling
  such as -0.5

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/16154

Signed-off-by: Michael Scott <mike@foundries.io>
2019-08-28 10:58:11 +02:00
..
bluetooth Bluetooth: controller: split: Fix data pause on Enc Req enqueue 2019-08-27 15:13:38 +02:00
console
cpp cpp: support for 64-bit constructors 2019-07-30 18:55:34 -07:00
debug subsys/debug/tracing: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
dfu dfu: fix printf formatting in img_util 2019-08-16 20:40:13 +02:00
disk disk: kconfig: Remove redundant DISK_ACCESS_SDHC dependency 2019-08-07 04:27:15 -04:00
fb scripts: gen_cfb_font_header: modify to replicate cfb fonts 2019-07-31 05:43:50 -04:00
fs fs: fcb: Increase temporary buffer in fcb_append 2019-08-27 11:49:33 +02:00
jwt
logging logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
mgmt Bluetooth: GATT: Fix using variable size storage for CCC 2019-08-22 15:14:39 +03:00
net net: lwm2m: plain text: fix float formatting 2019-08-28 10:58:11 +02:00
power
random
settings Settings: Improve error handling of settings load 2019-08-27 20:15:31 +02:00
shell shell: fix log output when CONFIG_LOG_IMMEDIATE=y 2019-08-14 14:27:14 +02:00
stats
storage
testsuite logging: Add basic userspace support 2019-08-27 14:29:21 -04:00
usb usb: check if the request buffer is not too small 2019-08-26 15:06:22 +02:00
CMakeLists.txt
Kconfig