[libvirt] [PATCH] libvirt-domain: fix the error reporting when use the localhost as target uri

Luyao Huang lhuang at redhat.com
Tue Oct 27 08:54:01 UTC 2015


Remove the extra %s in error message when call virReportInvalidArg().

Signed-off-by: Luyao Huang <lhuang at redhat.com>
---
 src/libvirt-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 14aeb09..de7eb04 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -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;
     }
 
-- 
1.8.3.1




More information about the libvir-list mailing list