Avoided displaying in non-verbose mode information which is not computed

The summary of 'runcount.runs' and 'runcount.fragments' was displayed in
non-verbose mode. However these variables are not updated in non-verbose
mode, so they would always be 0.
We now only display this summary in verbose mode.
edge.strict_endians
Jean-Pierre André 2013-02-09 12:08:58 +01:00
parent aebfcf3d27
commit 2e2550026e
1 changed files with 4 additions and 2 deletions

View File

@ -2302,8 +2302,10 @@ static void ntfs_dump_file_attributes(ntfs_inode *inode)
"enumerating attributes");
} else {
printf("End of inode reached\n");
printf("Total runs: %lu (fragments: %lu)\n",
runcount.runs, runcount.fragments);
if (opts.verbose) {
printf("Total runs: %lu (fragments: %lu)\n",
runcount.runs, runcount.fragments);
}
}
/* close all data-structures we used */