flash/nor/kinetis: fix clang scan-build error format-truncation
authorErhan Kurubas <erhan.kurubas@espressif.com>
Sun, 21 Aug 2022 18:57:32 +0000 (21:57 +0300)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 1 Sep 2022 10:22:29 +0000 (10:22 +0000)
commit6db57051d070fc8d6bb54d21413e5e8610972651
tree6af614827913e84dd82511642192cb02cb3ffc33
parenta527112dae0e8b3a31589c27d01a97174f24e1df
flash/nor/kinetis: fix clang scan-build error format-truncation

kinetis.c:994:61: error: '%u' directive output may be truncated
writing between 1 and 10 bytes into a region of size 4
[-Werror=format-truncation=]

tested with scan-build-14

Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: I72d141a3f8e19ca3596beee2be8434fc8492946f
Reviewed-on: https://review.openocd.org/c/openocd/+/7140
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
src/flash/nor/kinetis.c