Commit a09de51c authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

bfd: print errno if data can not be flushed

Mr Jenkins reports errors like this:
(02.423007) Error (bfd.c:118): Error flushing image
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a1d7c7c5
...@@ -115,7 +115,7 @@ void bclose(struct bfd *f) ...@@ -115,7 +115,7 @@ void bclose(struct bfd *f)
* flag, failing further bfdopen-s and * flag, failing further bfdopen-s and
* checking one at the end would work. * checking one at the end would work.
*/ */
pr_err("Error flushing image\n"); pr_perror("Error flushing image");
buf_put(&f->b); buf_put(&f->b);
} }
close(f->fd); close(f->fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment