blobmsg_json: prefer snprintf usage
authorPetr Štetiar <ynezz@true.cz>
Tue, 14 Jan 2020 08:05:02 +0000 (09:05 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 Jan 2020 15:54:10 +0000 (16:54 +0100)
commit1ffa41535369f5bb67d1eb5bdcb306671ca1d2e4
tree2bf73fcad0d352cef827f4cd2d5008af4c36c4fb
parent132ecb563da794f390209c20f94d4798839dc709
blobmsg_json: prefer snprintf usage

Better safe than sorry and while at it prefer use of PRId16 and PRId32
formatting constants as well.

Reviewed-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
blobmsg_json.c
tests/cram/test_blobmsg.t
tests/test-blobmsg.c