diff options
author | Max Reitz <mreitz@redhat.com> | 2016-06-15 17:36:29 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-07-13 13:41:38 +0200 |
commit | bcf23482ae00e040dbef46c44ff914bf788a0937 (patch) | |
tree | 6ca5be38c08aa069ffa041112b28071a162747ec /qemu-img.c | |
parent | 35fedb7b0e5766fc62a2c0bdce023b50dc5e3ffc (diff) | |
download | qemu-bcf23482ae00e040dbef46c44ff914bf788a0937.zip qemu-bcf23482ae00e040dbef46c44ff914bf788a0937.tar.gz qemu-bcf23482ae00e040dbef46c44ff914bf788a0937.tar.bz2 |
qemu-img: Use strerror() for generic resize error
Emitting the plain error number is not very helpful. Use strerror()
instead.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20160615153630.2116-2-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3283,7 +3283,7 @@ static int img_resize(int argc, char **argv) error_report("Image is read-only"); break; default: - error_report("Error resizing image (%d)", -ret); + error_report("Error resizing image: %s", strerror(-ret)); break; } out: |