]> xenbits.xensource.com Git - libvirt.git/commitdiff
domain_conf: cleanup virDomainGraphicsListenDefParseXML
authorPavel Hrdina <phrdina@redhat.com>
Mon, 2 May 2016 12:49:38 +0000 (14:49 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 17 May 2016 08:41:45 +0000 (10:41 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c

index 0967e32366912727158d6934ad7c9a014cdc8b0e..658145386ed76bda9617d4461097a2d055c4e2b6 100644 (file)
@@ -10716,10 +10716,9 @@ virDomainGraphicsListenDefParseXML(virDomainGraphicsListenDefPtr def,
 
     if (network && network[0]) {
         if (def->type != VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK) {
-            /* network='xxx' never makes sense with anything except
-             * type='network' */
             virReportError(VIR_ERR_XML_ERROR, "%s",
-                           _("network attribute not allowed when listen type is not network"));
+                           _("'network' attribute is valid only for listen "
+                             "type 'network'"));
             goto error;
         }
         def->network = network;