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 <lhuang@redhat.com>
This commit is contained in:
Luyao Huang 2015-10-27 16:54:01 +08:00 committed by Martin Kletzander
parent b02d0c33b0
commit 50be3b44c5

View 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;
}