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: Lei Li <lilei@linux.vnet.ibm.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
f828a4c8fa
commit
675fd0a7da
7
savevm.c
7
savevm.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user