btrfs-progs: fix show super unknown flag output

coverity pointed out that unknown flag printing in show super had some
dead code.  It turns out that first was reset when the first flag was
tested, not when it was output.  We only want to clear it if the first
matching bit is output.  If there are no matching bits then we'll want
to output the unknown flag first.

Signed-off-by: Zach Brown <zab@zabbo.net>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Zach Brown 2014-10-15 16:14:20 -07:00 committed by David Sterba
parent 17063426a0
commit a197726ad7
1 changed files with 1 additions and 1 deletions

View File

@ -324,8 +324,8 @@ static void print_readable_incompat_flag(u64 flag)
printf("%s ", entry->output);
else
printf("|\n\t\t\t %s ", entry->output);
first = 0;
}
first = 0;
}
flag &= ~BTRFS_FEATURE_INCOMPAT_SUPP;
if (flag) {