X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fpsoc6.c;h=c65411bb9cfb98ce85609ada2ca5e0c56d424e5d;hb=64c2e03b23d9cadc1b919d38e902a079d015ddc6;hp=9c834fde6ba8b12853ff4bdf422c5df74e7a8fbc;hpb=f2958fc04bd879393fa743860478834e234f05d0;p=openocd.git diff --git a/src/flash/nor/psoc6.c b/src/flash/nor/psoc6.c index 9c834fde6b..c65411bb9c 100644 --- a/src/flash/nor/psoc6.c +++ b/src/flash/nor/psoc6.c @@ -495,7 +495,7 @@ static const char *protection_to_str(uint8_t protection) * @param buf_size size of the buffer * @return ERROR_OK in case of success, ERROR_XXX code otherwise *************************************************************************************************/ -static int psoc6_get_info(struct flash_bank *bank, char *buf, int buf_size) +static int psoc6_get_info(struct flash_bank *bank, struct command_invocation *cmd) { struct psoc6_target_info *psoc6_info = bank->driver_priv; @@ -506,7 +506,7 @@ static int psoc6_get_info(struct flash_bank *bank, char *buf, int buf_size) if (hr != ERROR_OK) return hr; - snprintf(buf, buf_size, + command_print_sameline(cmd, "PSoC6 Silicon ID: 0x%08" PRIX32 "\n" "Protection: %s\n" "Main Flash size: %" PRIu32 " kB\n"