UML: fix iteration over consoles

I found typo in UML driver.

MATSUDA Daiki
This commit is contained in:
MATSUDA, Daiki authored and Eric Blake committed 2012-04-09 10:21:07 -06:00
1 parent 1413560966
commit 257191c9e4
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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....]
+1 -1
View 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)