[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 3/5] qemu-img: fix missing space in qemu-img chec
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH v3 3/5] qemu-img: fix missing space in qemu-img check output |
Date: |
Thu, 7 Feb 2013 17:15:03 +0100 |
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 <address@hidden>
---
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) {
--
1.8.1
- [Qemu-devel] [PATCH v3 0/5] qcow2: add fragmentation and compression info support, Stefan Hajnoczi, 2013/02/07
- [Qemu-devel] [PATCH v3 5/5] qcow2: support compressed clusters in BlockFragInfo, Stefan Hajnoczi, 2013/02/07
- [Qemu-devel] [PATCH v3 3/5] qemu-img: fix missing space in qemu-img check output,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v3 1/5] qcow2: introduce check_refcounts_l1/l2() flags, Stefan Hajnoczi, 2013/02/07
- [Qemu-devel] [PATCH v3 4/5] qemu-img: add compressed clusters to BlockFragInfo, Stefan Hajnoczi, 2013/02/07
- [Qemu-devel] [PATCH v3 2/5] qcow2: record fragmentation statistics during check, Stefan Hajnoczi, 2013/02/07
- Re: [Qemu-devel] [PATCH v3 0/5] qcow2: add fragmentation and compression info support, Eric Blake, 2013/02/07
- Re: [Qemu-devel] [PATCH v3 0/5] qcow2: add fragmentation and compression info support, Kevin Wolf, 2013/02/12
- Re: [Qemu-devel] [PATCH v3 0/5] qcow2: add fragmentation and compression info support, Stefan Hajnoczi, 2013/02/12