diff options
| author | Lei Li <lilei@linux.vnet.ibm.com> | 2013-09-04 17:02:34 +0800 |
|---|---|---|
| committer | Juan Quintela <quintela@trasno.org> | 2013-09-24 13:22:08 +0200 |
| commit | 675fd0a7daa484a2011895583249c88ef2a27921 (patch) | |
| tree | eec5d1c82867c5fc8b8eb205078d3994d906d2f6 | |
| parent | f828a4c8faa118e0ebab3e353ac6840f3b2a0318 (diff) | |
| download | focaccia-qemu-675fd0a7daa484a2011895583249c88ef2a27921.tar.gz focaccia-qemu-675fd0a7daa484a2011895583249c88ef2a27921.zip | |
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>
| -rw-r--r-- | savevm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c index 4a3c819fcd..a834c6f69a 100644 --- 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; |