From: Lei Li Date: Wed, 4 Sep 2013 09:02:34 +0000 (+0800) Subject: savevm: add comments for qemu_file_get_error() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=675fd0a7daa484a2011895583249c88ef2a27921;p=qemu.git 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 Signed-off-by: Juan Quintela --- 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;