提交 675fd0a7 编写于 作者: L Lei Li 提交者: Juan Quintela

savevm: add comments for qemu_file_get_error()

Add comments for qemu_file_get_error(), as its return value
is not very clear.
Signed-off-by: NLei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: NJuan Quintela <quintela@redhat.com>
上级 f828a4c8
......@@ -566,6 +566,13 @@ QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
return f;
}
/*
* Get last error for stream f
*
* Return negative error value if there has been an error on previous
* operations, return 0 if no error happened.
*
*/
int qemu_file_get_error(QEMUFile *f)
{
return f->last_error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册