From e29ec82e4e66042ca55bf8cd9ef609e3b21a7eb7 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 6 Nov 2015 17:00:36 +0100 Subject: [PATCH] btrfs-progs: don't print version info from embedded subcommands The version is provided by 'btrfs --version'. Signed-off-by: David Sterba --- cmds-check.c | 1 - cmds-filesystem.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index fd661d98..6a0b50a3 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -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: diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 3bd6304d..03529455 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -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);