From 50be3b44c5219db10daf5236b8af7788c0726cc8 Mon Sep 17 00:00:00 2001 From: Luyao Huang Date: Tue, 27 Oct 2015 16:54:01 +0800 Subject: [PATCH] libvirt-domain: fix the error reporting when use the localhost as target uri Remove the extra %s in error message when call virReportInvalidArg(). Signed-off-by: Luyao Huang --- 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 14aeb09604..de7eb04b9f 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; }