/* If the command failed qemu prints: 'unknown command'
* No message is printed on success it seems */
- if (strstr(reply, "\nunknown command:")) {
+ if (strstr(reply, "unknown command:")) {
/* Don't set error - it is expected memory balloon fails on many qemu */
ret = 0;
} else {
if (qemuMonitorCommand(mon, cmd, &reply) < 0) {
qemuReportError(VIR_ERR_OPERATION_FAILED,
- "%s", _("could nt change CPU online status"));
+ "%s", _("could not change CPU online status"));
VIR_FREE(cmd);
return -1;
}
/* If the command failed qemu prints: 'unknown command'
* No message is printed on success it seems */
- if (strstr(reply, "\nunknown command:")) {
+ if (strstr(reply, "unknown command:")) {
/* Don't set error - it is expected CPU onlining fails on many qemu - caller will handle */
ret = 0;
} else {
/* If the command failed qemu prints:
* device not found, device is locked ...
* No message is printed on success it seems */
- if (strstr(reply, "\ndevice ")) {
+ if (strstr(reply, "device ")) {
qemuReportError(VIR_ERR_OPERATION_FAILED,
_("could not eject media on %s: %s"), devname, reply);
goto cleanup;
/* If the command failed qemu prints:
* device not found, device is locked ...
* No message is printed on success it seems */
- if (strstr(reply, "\ndevice ")) {
+ if (strstr(reply, "device ")) {
qemuReportError(VIR_ERR_OPERATION_FAILED,
_("could not eject media on %s: %s"), devname, reply);
goto cleanup;
}
/* Could not open message indicates bad filename */
- if (strstr(reply, "\nCould not open ")) {
+ if (strstr(reply, "Could not open ")) {
qemuReportError(VIR_ERR_OPERATION_FAILED,
_("could not change media on %s: %s"), devname, reply);
goto cleanup;
goto cleanup;
}
- if (strstr(reply, "\nunknown command:")) {
+ if (strstr(reply, "unknown command:")) {
qemuReportError(VIR_ERR_OPERATION_FAILED, "%s",
_("setting disk password is not supported"));
goto cleanup;