From: Goffredo Baroncelli <[email protected]>

When the function pretty_sizes() is used, the word "bytes" must
avoided.
---
 cmds-filesystem.c |    2 +-
 cmds-scrub.c      |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index 9c43d35..21cdd7f 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -202,7 +202,7 @@ static void print_one_uuid(struct btrfs_fs_devices 
*fs_devices)
        super_bytes_used = pretty_sizes(device->super_bytes_used);
 
        total = device->total_devs;
-       printf(" uuid: %s\n\tTotal devices %llu FS bytes used %s\n", uuidbuf,
+       printf(" uuid: %s\n\tTotal devices %llu FS space used %s\n", uuidbuf,
               (unsigned long long)total, super_bytes_used);
 
        free(super_bytes_used);
diff --git a/cmds-scrub.c b/cmds-scrub.c
index 24be20f..69dfa7e 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -125,7 +125,7 @@ static void print_scrub_summary(struct btrfs_scrub_progress 
*p)
 {
        u64 err_cnt;
        u64 err_cnt2;
-       char *bytes;
+       char *total;
 
        err_cnt = p->read_errors +
                        p->csum_errors +
@@ -137,10 +137,10 @@ static void print_scrub_summary(struct 
btrfs_scrub_progress *p)
        if (p->malloc_errors)
                printf("*** WARNING: memory allocation failed while scrubbing. "
                       "results may be inaccurate\n");
-       bytes = pretty_sizes(p->data_bytes_scrubbed + p->tree_bytes_scrubbed);
-       printf("\ttotal bytes scrubbed: %s with %llu errors\n", bytes,
+       total = pretty_sizes(p->data_bytes_scrubbed + p->tree_bytes_scrubbed);
+       printf("\ttotal scrubbed: %s with %llu errors\n", total,
                max(err_cnt, err_cnt2));
-       free(bytes);
+       free(total);
        if (err_cnt || err_cnt2) {
                printf("\terror details:");
                PRINT_SCRUB_ERROR(p->read_errors, "read");
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to