1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

fix make syntax-check error

This commit is contained in:
Wen Congyang 2011-07-21 17:32:57 +08:00
parent fbdea7cb92
commit d6fa4967bc
2 changed files with 5 additions and 5 deletions

View File

@ -391,14 +391,14 @@ int qemuSetupCgroupVcpuBW(virCgroupPtr cgroup, unsigned long long period,
rc = virCgroupGetCpuCfsPeriod(cgroup, &old_period); rc = virCgroupGetCpuCfsPeriod(cgroup, &old_period);
if (rc < 0) { if (rc < 0) {
virReportSystemError(-rc, virReportSystemError(-rc,
_("%s"), "Unable to get cpu bandwidth period"); "%s", _("Unable to get cpu bandwidth period"));
return -1; return -1;
} }
rc = virCgroupSetCpuCfsPeriod(cgroup, period); rc = virCgroupSetCpuCfsPeriod(cgroup, period);
if (rc < 0) { if (rc < 0) {
virReportSystemError(-rc, virReportSystemError(-rc,
_("%s"), "Unable to set cpu bandwidth period"); "%s", _("Unable to set cpu bandwidth period"));
return -1; return -1;
} }
} }
@ -407,7 +407,7 @@ int qemuSetupCgroupVcpuBW(virCgroupPtr cgroup, unsigned long long period,
rc = virCgroupSetCpuCfsQuota(cgroup, quota); rc = virCgroupSetCpuCfsQuota(cgroup, quota);
if (rc < 0) { if (rc < 0) {
virReportSystemError(-rc, virReportSystemError(-rc,
_("%s"), "Unable to set cpu bandwidth quota"); "%s", _("Unable to set cpu bandwidth quota"));
goto cleanup; goto cleanup;
} }
} }