Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Tue, 8 Jul 2008 20:40:11 +0000 (20:40 +0000)
committeradilger <adilger>
Tue, 8 Jul 2008 20:40:11 +0000 (20:40 +0000)
Don't drop LBUG/LASSERT messages (subsystem = 0) when processing the debug log.
b=16117

lnet/utils/debug.c

index e2ff90b..045fc2c 100644 (file)
@@ -406,9 +406,8 @@ static int parse_buffer(FILE *in, FILE *out)
                 if (rc <= 0)
                         break;
 
-                if (hdr->ph_mask &&
-                    (!(subsystem_mask & hdr->ph_subsys) ||
-                     (!(debug_mask & hdr->ph_mask)))) {
+                if ((hdr->ph_subsys && !(subsystem_mask & hdr->ph_subsys)) ||
+                    (hdr->ph_mask   && !(debug_mask & hdr->ph_mask))) {
                         dropped++;
                         continue;
                 }