helper/command: change prototype of command_print/command_print_sameline
[fw/openocd] / src / flash / mflash.c
index 1ad7290fa5850095b889823a5e51c03d8aec6c4c..acf1441b7e236928b015f0c261e90a89d89259a2 100644 (file)
@@ -423,7 +423,7 @@ COMMAND_HANDLER(mg_probe_cmd)
        ret = mg_mflash_probe();
 
        if (ret == ERROR_OK) {
-               command_print(CMD_CTX,
+               command_print(CMD,
                        "mflash (total %" PRIu32 " sectors) found at 0x%8.8" PRIx32 "",
                        mflash_bank->drv_info->tot_sects,
                        mflash_bank->base);
@@ -799,7 +799,7 @@ COMMAND_HANDLER(mg_write_cmd)
        }
 
        if (duration_measure(&bench) == ERROR_OK) {
-               command_print(CMD_CTX, "wrote %zu bytes from file %s "
+               command_print(CMD, "wrote %zu bytes from file %s "
                        "in %fs (%0.3f kB/s)", filesize, CMD_ARGV[1],
                        duration_elapsed(&bench), duration_kbps(&bench, filesize));
        }
@@ -866,7 +866,7 @@ COMMAND_HANDLER(mg_dump_cmd)
        }
 
        if (duration_measure(&bench) == ERROR_OK) {
-               command_print(CMD_CTX, "dump image (address 0x%8.8" PRIx32 " "
+               command_print(CMD, "dump image (address 0x%8.8" PRIx32 " "
                        "size %" PRIu32 ") to file %s in %fs (%0.3f kB/s)",
                        address, size, CMD_ARGV[1],
                        duration_elapsed(&bench), duration_kbps(&bench, size));