flash/stm32l4x: use COMMAND_PARSE_NUMBER in command handlers
commit91b5626e7fa7f30b1c5c8b69cf1decf33e892c42
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Thu, 29 Jul 2021 21:05:18 +0000 (29 22:05 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 22 Aug 2021 10:45:17 +0000 (22 10:45 +0000)
tree216a7d0447844cdb72a6ab45e5d38940f6aada38
parent88c3e767b29b2aeec6f9290cfb9efb749b4d6f82
flash/stm32l4x: use COMMAND_PARSE_NUMBER in command handlers

the usage of COMMAND_PARSE_NUMBER is safer in COMMAND_HANDLERs since it provides
better error checking than strto** functions.

Change-Id: I7e113b06b74f2d8d9cc4c0ce1957994a1c49c964
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6419
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Tested-by: jenkins
src/flash/nor/stm32l4x.c