From d26cb3cbbe72beb35d15051e2d122e271aecb1d2 Mon Sep 17 00:00:00 2001
From: adilger <adilger>
Date: Tue, 8 Jul 2008 20:40:11 +0000
Subject: [PATCH] Branch HEAD Don't drop LBUG/LASSERT messages (subsystem = 0)
 when processing the debug log. b=16117

---
 lnet/utils/debug.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c
index e2ff90bb03..045fc2c6d3 100644
--- a/lnet/utils/debug.c
+++ b/lnet/utils/debug.c
@@ -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;
                 }
-- 
GitLab