]> git.proxmox.com Git - qemu.git/blobdiff - qtest.c
elfload: use tswapreg consistently in elf_core_copy_regs
[qemu.git] / qtest.c
diff --git a/qtest.c b/qtest.c
index 5e0e9ec7918b05dc4afb608192c15ba7d4152608..3bba3e5751d4b8ece1a25b7043d6919b93dfe8ed 100644 (file)
--- a/qtest.c
+++ b/qtest.c
@@ -13,7 +13,7 @@
 
 #include "sysemu/qtest.h"
 #include "hw/qdev.h"
-#include "char/char.h"
+#include "sysemu/char.h"
 #include "exec/ioport.h"
 #include "exec/memory.h"
 #include "hw/irq.h"
@@ -191,7 +191,7 @@ static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr,
     len = vsnprintf(buffer, sizeof(buffer), fmt, ap);
     va_end(ap);
 
-    qemu_chr_fe_write(chr, (uint8_t *)buffer, len);
+    qemu_chr_fe_write_all(chr, (uint8_t *)buffer, len);
     if (qtest_log_fp && qtest_opened) {
         fprintf(qtest_log_fp, "%s", buffer);
     }