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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Luyao Huang <lhuang@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]