summaryrefslogtreecommitdiff
path: root/src/libvirt-host.c
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2023-03-09 15:26:48 +0100
committerJiri Denemark <jdenemar@redhat.com>2023-04-01 11:40:35 +0200
commit90d8652438e9434e8fee98dbf6c32b1b65962761 (patch)
treed3df33f264c1382d3bc0357960a168f63af38c8c /src/libvirt-host.c
parent72bcbcfef9aea2644dc278a0424253b7d85e2b52 (diff)
downloadlibvirt-90d8652438e9434e8fee98dbf6c32b1b65962761.tar.gz
src: Update format strings in translated messages
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'src/libvirt-host.c')
-rw-r--r--src/libvirt-host.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libvirt-host.c b/src/libvirt-host.c
index a2ba347d54..e67b36812e 100644
--- a/src/libvirt-host.c
+++ b/src/libvirt-host.c
@@ -565,8 +565,7 @@ virNodeGetCPUStats(virConnectPtr conn,
virCheckNonNegativeArgGoto(*nparams, error);
if (cpuNum < 0 && cpuNum != VIR_NODE_CPU_STATS_ALL_CPUS) {
virReportInvalidArg(cpuNum,
- _("cpuNum in %s only accepts %d as a negative "
- "value"),
+ _("cpuNum in %1$s only accepts %2$d as a negative value"),
__FUNCTION__, VIR_NODE_CPU_STATS_ALL_CPUS);
goto error;
}
@@ -654,8 +653,7 @@ virNodeGetMemoryStats(virConnectPtr conn,
virCheckNonNegativeArgGoto(*nparams, error);
if (cellNum < 0 && cellNum != VIR_NODE_MEMORY_STATS_ALL_CELLS) {
virReportInvalidArg(cpuNum,
- _("cellNum in %s only accepts %d as a negative "
- "value"),
+ _("cellNum in %1$s only accepts %2$d as a negative value"),
__FUNCTION__, VIR_NODE_MEMORY_STATS_ALL_CELLS);
goto error;
}