forked from auracaster/openocd
1dedd6918b
Avoid code duplication by merging command_print() and command_print_sameline(). Detect the allocation error, keep track of it and let the command return error. Add a FIXME as the functions should always have 'cmd' properly set. Should this be an assert()? Change-Id: Iff704c42969a7ca9ea884520942adecd40bebbd6 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9090 Tested-by: jenkins