diff mbox

[kvm-unit-tests,v2,2/3] io: only initialize serial port once

Message ID 1368111305-9076-3-git-send-email-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paolo Bonzini May 9, 2013, 2:55 p.m. UTC
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 lib/x86/io.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/lib/x86/io.c b/lib/x86/io.c
index 0282888..d3b971e 100644
--- a/lib/x86/io.c
+++ b/lib/x86/io.c
@@ -46,6 +46,7 @@  static void print_serial(const char *buf)
         unsigned long i;
         if (!serial_inited) {
             serial_init();
+            serial_inited = 1;
         }
 
         for (i = 0; i < len; i++) {