From: Kevin Wolf <kwolf@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com
Subject: [Qemu-devel] [PULL 1/5] qemu-img: Omit error_report() after img_open()
Date: Mon, 10 Nov 2014 11:57:08 +0100 [thread overview]
Message-ID: <1415617032-12850-2-git-send-email-kwolf@redhat.com> (raw)
In-Reply-To: <1415617032-12850-1-git-send-email-kwolf@redhat.com>
From: Max Reitz <mreitz@redhat.com>
img_open() already prints an error if the operation failed, so there
should not be another error_report() afterwards.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
qemu-img.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index 66a7eb4..a42335c 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -1126,7 +1126,6 @@ static int img_compare(int argc, char **argv)
blk1 = img_open("image_1", filename1, fmt1, flags, true, quiet);
if (!blk1) {
- error_report("Can't open file %s", filename1);
ret = 2;
goto out3;
}
@@ -1134,7 +1133,6 @@ static int img_compare(int argc, char **argv)
blk2 = img_open("image_2", filename2, fmt2, flags, true, quiet);
if (!blk2) {
- error_report("Can't open file %s", filename2);
ret = 2;
goto out2;
}
@@ -1482,7 +1480,6 @@ static int img_convert(int argc, char **argv)
true, quiet);
g_free(id);
if (!blk[bs_i]) {
- error_report("Could not open '%s'", argv[optind + bs_i]);
ret = -1;
goto out;
}
@@ -2962,7 +2959,6 @@ static int img_amend(int argc, char **argv)
blk = img_open("image", filename, fmt, flags, true, quiet);
if (!blk) {
- error_report("Could not open image '%s'", filename);
ret = -1;
goto out;
}
--
1.8.3.1
next prev parent reply other threads:[~2014-11-10 10:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 10:57 [Qemu-devel] [PULL 0/5] Block patches for 2.2 Kevin Wolf
2014-11-10 10:57 ` Kevin Wolf [this message]
2014-11-10 10:57 ` [Qemu-devel] [PULL 2/5] block: Propagate error in bdrv_img_create() Kevin Wolf
2014-11-10 10:57 ` [Qemu-devel] [PULL 3/5] iotests: Add test for non-existing backing file Kevin Wolf
2014-11-10 10:57 ` [Qemu-devel] [PULL 4/5] qapi: Complete BlkdebugEvent Kevin Wolf
2014-11-10 10:57 ` [Qemu-devel] [PULL 5/5] block/vdi: Limit maximum size even futher Kevin Wolf
2014-11-10 20:00 ` [Qemu-devel] [PULL 0/5] Block patches for 2.2 Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415617032-12850-2-git-send-email-kwolf@redhat.com \
--to=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).