X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fath79.c;h=394b6dda06e8f7ae9241f8a1fb2758b2a3ae14d6;hb=4f371e8eed5c4e479d326cf09f7827884c23b947;hp=9a4595f6d1134d62963686c3b674f4b4ed2991a1;hpb=e66593f8242d49dd05f6b9c4a5121fa466a158aa;p=openocd.git diff --git a/src/flash/nor/ath79.c b/src/flash/nor/ath79.c index 9a4595f6d1..394b6dda06 100644 --- a/src/flash/nor/ath79.c +++ b/src/flash/nor/ath79.c @@ -875,17 +875,16 @@ static int ath79_protect_check(struct flash_bank *bank) return ERROR_OK; } -static int get_ath79_info(struct flash_bank *bank, char *buf, int buf_size) +static int get_ath79_info(struct flash_bank *bank, struct command_invocation *cmd) { struct ath79_flash_bank *ath79_info = bank->driver_priv; if (!ath79_info->probed) { - snprintf(buf, buf_size, - "\nATH79 flash bank not probed yet\n"); + command_print_sameline(cmd, "\nATH79 flash bank not probed yet\n"); return ERROR_OK; } - snprintf(buf, buf_size, "\nATH79 flash information:\n" + command_print_sameline(cmd, "\nATH79 flash information:\n" " Device \'%s\' (ID 0x%08" PRIx32 ")\n", ath79_info->dev->name, ath79_info->dev->device_id);