btrfs-progs: fix show super unknown flag output
authorZach Brown <zab@zabbo.net>
Wed, 15 Oct 2014 23:14:20 +0000 (16:14 -0700)
committerDavid Sterba <dsterba@suse.cz>
Thu, 16 Oct 2014 11:38:35 +0000 (13:38 +0200)
commita197726ad770760c28a2595cf24ef5cf40f673e0
tree9db7e32962f56f0a6459249ca22da20e9d4e6d78
parent17063426a025dae59446a63388d0fb257d546192
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>
btrfs-show-super.c