Il 21/08/2013 09:18, Lei Li ha scritto: > Add comments for qemu_file_get_error(), as its return value > is not very clear. > > Signed-off-by: Lei Li <li...@linux.vnet.ibm.com> > --- > savevm.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/savevm.c b/savevm.c > index 6362275..1522d95 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 negtive error value if there has been an error on previous > + * operations, return 0 no error happened. > + * > + */ > int qemu_file_get_error(QEMUFile *f) > { > return f->last_error; >
Looks good, Paolo