btrfs-progs: don't print version info from embedded subcommands
authorDavid Sterba <dsterba@suse.com>
Fri, 6 Nov 2015 16:00:36 +0000 (17:00 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 Nov 2015 16:00:36 +0000 (17:00 +0100)
The version is provided by 'btrfs --version'.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
cmds-filesystem.c

index fd661d9..6a0b50a 100644 (file)
@@ -9730,7 +9730,6 @@ out:
        printf("file data blocks allocated: %llu\n referenced %llu\n",
                (unsigned long long)data_bytes_allocated,
                (unsigned long long)data_bytes_referenced);
-       printf("%s\n", PACKAGE_STRING);
 
        free_root_recs_tree(&root_cache);
 close_out:
index 3bd6304..0352945 100644 (file)
@@ -916,7 +916,6 @@ devs_only:
                free_fs_devices(fs_devices);
        }
 out:
-       printf("%s\n", PACKAGE_STRING);
        free_seen_fsid();
        return ret;
 }
@@ -1174,8 +1173,6 @@ static int cmd_filesystem_defrag(int argc, char **argv)
                        defrag_global_errors++;
                }
        }
-       if (defrag_global_verbose)
-               printf("%s\n", PACKAGE_STRING);
        if (defrag_global_errors)
                fprintf(stderr, "total %d failures\n", defrag_global_errors);