mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Fix up NLS warnings.
When building with --disable-nls, I got a few messages like this: storage/storage_backend.c: In function 'virStorageBackendCreateQemuImg': storage/storage_backend.c:571: warning: format not a string literal and no format arguments Fix these up. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
9231aa7d95
commit
991be60403
@ -1813,7 +1813,7 @@ virDomainWatchdogDefParseXML(virConnectPtr conn,
|
||||
|
||||
model = virXMLPropString (node, "model");
|
||||
if (model == NULL) {
|
||||
virDomainReportError (conn, VIR_ERR_INTERNAL_ERROR,
|
||||
virDomainReportError (conn, VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("watchdog must contain model name"));
|
||||
goto error;
|
||||
}
|
||||
|
@ -1858,7 +1858,7 @@ static int lxcSetSchedulerParameters(virDomainPtr domain,
|
||||
for (i = 0; i < nparams; i++) {
|
||||
virSchedParameterPtr param = ¶ms[i];
|
||||
if (param->type != VIR_DOMAIN_SCHED_FIELD_ULLONG) {
|
||||
lxcError(NULL, domain, VIR_ERR_INVALID_ARG,
|
||||
lxcError(NULL, domain, VIR_ERR_INVALID_ARG, "%s",
|
||||
_("invalid type for cpu_shares tunable, expected a 'ullong'"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -5299,7 +5299,7 @@ static int qemuSetSchedulerParameters(virDomainPtr dom,
|
||||
if (STREQ(param->field, "cpu_shares")) {
|
||||
int rc;
|
||||
if (param->type != VIR_DOMAIN_SCHED_FIELD_ULLONG) {
|
||||
qemudReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_ARG,
|
||||
qemudReportError(dom->conn, dom, NULL, VIR_ERR_INVALID_ARG, "%s",
|
||||
_("invalid type for cpu_shares tunable, expected a 'ullong'"));
|
||||
goto cleanup;
|
||||
}
|
||||
@ -6463,7 +6463,7 @@ static int doTunnelSendAll(virDomainPtr dom,
|
||||
break;
|
||||
|
||||
if (virStreamSend(st, buffer, nbytes) < 0) {
|
||||
qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
|
||||
qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED, "%s",
|
||||
_("Failed to write migration data to remote libvirtd"));
|
||||
return -1;
|
||||
}
|
||||
@ -6685,7 +6685,7 @@ static int doNonTunnelMigrate(virDomainPtr dom,
|
||||
goto cleanup;
|
||||
|
||||
if (uri_out == NULL) {
|
||||
qemudReportError(NULL, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
|
||||
qemudReportError(NULL, NULL, NULL, VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("domainMigratePrepare2 did not set uri"));
|
||||
}
|
||||
|
||||
|
@ -568,7 +568,7 @@ virStorageBackendCreateQemuImg(virConnectPtr conn,
|
||||
return -1;
|
||||
}
|
||||
if (enc->nsecrets > 1) {
|
||||
virStorageReportError(conn, VIR_ERR_INVALID_STORAGE_VOL,
|
||||
virStorageReportError(conn, VIR_ERR_INVALID_STORAGE_VOL, "%s",
|
||||
_("too many secrets for qcow encryption"));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user