path: root/btrfs-show-super.c
diff options
authorZach Brown <>2014-10-15 16:14:20 -0700
committerDavid Sterba <>2014-10-16 13:38:35 +0200
commita197726ad770760c28a2595cf24ef5cf40f673e0 (patch)
tree9db7e32962f56f0a6459249ca22da20e9d4e6d78 /btrfs-show-super.c
parent17063426a025dae59446a63388d0fb257d546192 (diff)
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 <> Signed-off-by: David Sterba <>
Diffstat (limited to 'btrfs-show-super.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-show-super.c b/btrfs-show-super.c
index 456dbd86..2b48f44f 100644
--- a/btrfs-show-super.c
+++ b/btrfs-show-super.c
@@ -324,8 +324,8 @@ static void print_readable_incompat_flag(u64 flag)
printf("%s ", entry->output);
printf("|\n\t\t\t %s ", entry->output);
+ first = 0;
- first = 0;
if (flag) {