]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libvirt-domain: fix the error reporting when use the localhost as target uri
authorLuyao Huang <lhuang@redhat.com>
Tue, 27 Oct 2015 08:54:01 +0000 (16:54 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 27 Oct 2015 09:43:52 +0000 (10:43 +0100)
Remove the extra %s in error message when call virReportInvalidArg().

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/libvirt-domain.c

index 14aeb09604f42547e302e9b6f069eb48709ef2b3..de7eb04b9f109081e304d1b81dbca67f0b5dbef2 100644 (file)
@@ -3303,7 +3303,7 @@ virDomainMigrateCheckNotLocal(const char *dconnuri)
         goto cleanup;
     if (!tempuri->server || STRPREFIX(tempuri->server, "localhost")) {
         virReportInvalidArg(dconnuri, "%s",
-                            _("Attempt to migrate guest to the same host %s"));
+                            _("Attempt to migrate guest to the same host"));
         goto cleanup;
     }