OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f828a4c
)
savevm: add comments for qemu_file_get_error()
author
Lei Li
<lilei@linux.vnet.ibm.com>
Wed, 4 Sep 2013 09:02:34 +0000
(17:02 +0800)
committer
Juan Quintela
<quintela@trasno.org>
Tue, 24 Sep 2013 11:22:08 +0000
(13:22 +0200)
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>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index
4a3c819
..
a834c6f
100644
(file)
--- a/
savevm.c
+++ b/
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;