]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
UML: fix iteration over consoles
authorMATSUDA, Daiki <matsudadik@intellilink.co.jp>
Mon, 9 Apr 2012 03:40:52 +0000 (12:40 +0900)
committerEric Blake <eblake@redhat.com>
Mon, 9 Apr 2012 16:21:07 +0000 (10:21 -0600)
I found typo in UML driver.

MATSUDA Daiki

AUTHORS
src/uml/uml_driver.c

diff --git a/AUTHORS b/AUTHORS
index 66938cbe54b1160f044f5c3c41affc1dfbf0ed42..b2283830e133bb2f375fe29d4b1a7c0365cd2168 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -230,6 +230,7 @@ Patches have also been contributed by:
   Christian Benvenuti  <benve@cisco.com>
   Ilja Livenson        <ilja.livenson@gmail.com>
   Stefan Bader         <stefan.bader@canonical.com>
+  MATSUDA Daiki        <matsudadik@intellilink.co.jp>
 
   [....send patches to get your name here....]
 
index f2d036838434d7a127659578d7efb5bbc3f61060..4e640ff67ae77b0234aae897b3df071463b621dd 100644 (file)
@@ -249,7 +249,7 @@ umlIdentifyChrPTY(struct uml_driver *driver,
 {
     int i;
 
-    for (i = 0 ; i < dom->def->nserials; i++)
+    for (i = 0 ; i < dom->def->nconsoles; i++)
         if (dom->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY)
         if (umlIdentifyOneChrPTY(driver, dom,
                                  dom->def->consoles[i], "con") < 0)