提交 59e21e97 编写于 作者: P Peter Krempa

qemu: process: Silence coverity warning when rewinding log file

The change in ef29de14 that introduced
better error logging from qemu introduced a warning from coverity about
unused return value from lseek. Silence this warning and fix typo in the
corresponding error message.

Reported by: John Ferlan
上级 f113ce61
...@@ -1845,10 +1845,10 @@ cleanup: ...@@ -1845,10 +1845,10 @@ cleanup:
} }
len = strlen(buf); len = strlen(buf);
/* best effor seek - we need to reset to the original position, so that /* best effort seek - we need to reset to the original position, so that
* a possible read of the fd in the monitor code doesn't influence this * a possible read of the fd in the monitor code doesn't influence this
* error delivery option */ * error delivery option */
lseek(logfd, pos, SEEK_SET); ignore_value(lseek(logfd, pos, SEEK_SET));
qemuProcessReadLog(logfd, buf + len, buf_size - len - 1, 0, true); qemuProcessReadLog(logfd, buf + len, buf_size - len - 1, 0, true);
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("process exited while connecting to monitor: %s"), _("process exited while connecting to monitor: %s"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册