fsck: suppress "no problems found" when running quiet

Passing "-q" now disables the "fsck summary: no problems found\n"
message.
This commit is contained in:
Jakob Unterwurzacher 2018-06-27 22:17:41 +02:00
parent 52c9ff1ded
commit 283184dd5a
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func fsck(args *argContainer) {
ck.dir("")
wipeKeys()
if len(ck.corruptList) == 0 {
fmt.Printf("fsck summary: no problems found\n")
tlog.Info.Printf("fsck summary: no problems found\n")
return
}
fmt.Printf("fsck summary: %d corrupt files\n", len(ck.corruptList))