From patchwork Wed Feb 17 11:33:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 45612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 18C07B7D6A for ; Wed, 17 Feb 2010 22:43:07 +1100 (EST) Received: from localhost ([127.0.0.1]:44343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhiDE-0001ka-6b for incoming@patchwork.ozlabs.org; Wed, 17 Feb 2010 06:37:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhiAv-0001Tc-Qn for qemu-devel@nongnu.org; Wed, 17 Feb 2010 06:34:37 -0500 Received: from [199.232.76.173] (port=36338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhiAv-0001TM-2X for qemu-devel@nongnu.org; Wed, 17 Feb 2010 06:34:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhiAu-0002JT-1F for qemu-devel@nongnu.org; Wed, 17 Feb 2010 06:34:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34366) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhiAt-0002IM-7d for qemu-devel@nongnu.org; Wed, 17 Feb 2010 06:34:35 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1HBY4hW002605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Feb 2010 06:34:04 -0500 Received: from localhost.localdomain (dhcp-5-175.str.redhat.com [10.32.5.175]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1HBY3Cb001853; Wed, 17 Feb 2010 06:34:03 -0500 From: Kevin Wolf To: qemu-devel@nongnu.org Date: Wed, 17 Feb 2010 12:33:17 +0100 Message-Id: <1266406397-5121-1-git-send-email-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com Subject: [Qemu-devel] [PATCH] qemu-img: Fix error message X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When qemu-img can't open the new backing file for a rebase, it prints an error message which contains the file name of the old backing file. This is wrong, obviously. Signed-off-by: Kevin Wolf --- qemu-img.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index b03b382..250d892 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1169,7 +1169,7 @@ static int img_rebase(int argc, char **argv) if (bdrv_open2(bs_new_backing, out_baseimg, BRDV_O_FLAGS | BDRV_O_RDWR, new_backing_drv)) { - error("Could not open new backing file '%s'", backing_name); + error("Could not open new backing file '%s'", out_baseimg); return -1; } }