virBufferAddLit(&buf, "</disk>\n");
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
+ vshError(ctl, "%s", _("Failed to allocate XML buffer"));
goto cleanup;
}
virBufferAddLit(&buf, "</interface>\n");
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
+ vshError(ctl, "%s", _("Failed to allocate XML buffer"));
goto cleanup;
}
type = VIR_DOMAIN_METADATA_DESCRIPTION;
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to collect new description/title"));
+ vshError(ctl, "%s", _("Failed to collect new description/title"));
goto cleanup;
}
desc = virBufferContentAndReset(&buf);
virBufferTrim(&buf, " ", -1);
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to collect command"));
+ vshError(ctl, "%s", _("Failed to collect command"));
goto cleanup;
}
monitor_cmd = virBufferContentAndReset(&buf);
virBufferAdd(&buf, opt->data, -1);
}
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to collect command"));
+ vshError(ctl, "%s", _("Failed to collect command"));
goto cleanup;
}
guest_agent_cmd = virBufferContentAndReset(&buf);
/* Ensure we can print our URI */
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to create display URI"));
+ vshError(ctl, "%s", _("Failed to create display URI"));
goto cleanup;
}