From patchwork Thu Feb 7 16:15:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 218951 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 723F72C008C for ; Fri, 8 Feb 2013 03:28:55 +1100 (EST) Received: from localhost ([::1]:41136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U9H-0000py-AL for incoming@patchwork.ozlabs.org; Thu, 07 Feb 2013 11:16:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U8R-0007jZ-3X for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3U8C-0001Kx-4u for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3U8B-0001Kq-UC for qemu-devel@nongnu.org; Thu, 07 Feb 2013 11:15:24 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r17GFNHM003656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Feb 2013 11:15:23 -0500 Received: from localhost (ovpn-112-34.ams2.redhat.com [10.36.112.34]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r17GFMkG012593; Thu, 7 Feb 2013 11:15:22 -0500 From: Stefan Hajnoczi To: Date: Thu, 7 Feb 2013 17:15:03 +0100 Message-Id: <1360253705-10400-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1360253705-10400-1-git-send-email-stefanha@redhat.com> References: <1360253705-10400-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , fsimonce@redhat.com, Stefan Hajnoczi , crobinso@redhat.com Subject: [Qemu-devel] [PATCH v3 3/5] qemu-img: fix missing space in qemu-img check output X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The qemu-img check fragmentation printf() is missing a space before the '=' sign. The human output is not guaranteed to be stable and we are not aware of screen scrapers, so add the missing space. Also fix the missing indentation of the printf() arguments. Signed-off-by: Stefan Hajnoczi --- qemu-img.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 34249fe..0e34bf0 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -427,10 +427,11 @@ static void dump_human_image_check(ImageCheck *check) } if (check->total_clusters != 0 && check->allocated_clusters != 0) { - printf("%" PRId64 "/%" PRId64 "= %0.2f%% allocated, %0.2f%% fragmented\n", - check->allocated_clusters, check->total_clusters, - check->allocated_clusters * 100.0 / check->total_clusters, - check->fragmented_clusters * 100.0 / check->allocated_clusters); + printf("%" PRId64 "/%" PRId64 " = %0.2f%% allocated, " + "%0.2f%% fragmented\n", + check->allocated_clusters, check->total_clusters, + check->allocated_clusters * 100.0 / check->total_clusters, + check->fragmented_clusters * 100.0 / check->allocated_clusters); } if (check->image_end_offset) {