target_request: replace command_print() with command_output_text()
[openocd.git] / src / target / target_request.c
index 6ca204b..2df2958 100644 (file)
@@ -56,7 +56,7 @@ static int target_asciimsg(struct target *target, uint32_t length)
        LOG_DEBUG("%s", msg);
 
        while (c) {
-               command_print(c->cmd_ctx, "%s", msg);
+               command_output_text(c->cmd_ctx, msg);
                c = c->next;
        }
 
@@ -100,7 +100,7 @@ static int target_hexmsg(struct target *target, int size, uint32_t length)
                        LOG_DEBUG("%s", line);
 
                        while (c) {
-                               command_print(c->cmd_ctx, "%s", line);
+                               command_output_text(c->cmd_ctx, line);
                                c = c->next;
                        }
                        c = target->dbgmsg;