helper/command: change prototype of command_print/command_print_sameline
[fw/openocd] / src / flash / nor / fm3.c
index f2da2af8ae4481e4f5cd6476032bce93f65ac7f7..eeefa3f43e5fe6daeede6bf9e3537ab9ad39178d 100644 (file)
@@ -958,9 +958,9 @@ COMMAND_HANDLER(fm3_handle_chip_erase_command)
                for (i = 0; i < bank->num_sectors; i++)
                        bank->sectors[i].is_erased = 1;
 
-               command_print(CMD_CTX, "fm3 chip erase complete");
+               command_print(CMD, "fm3 chip erase complete");
        } else {
-               command_print(CMD_CTX, "fm3 chip erase failed");
+               command_print(CMD, "fm3 chip erase failed");
        }
 
        return ERROR_OK;