Whamcloud - gitweb
- two ASSERTs int filter_parent() changed to ASSERTF with failed values for debug...
authoryury <yury>
Fri, 12 Aug 2005 15:15:33 +0000 (15:15 +0000)
committeryury <yury>
Fri, 12 Aug 2005 15:15:33 +0000 (15:15 +0000)
lustre/obdfilter/filter.c

index 738cc7b..407de16 100644 (file)
@@ -1138,8 +1138,10 @@ static void filter_parent_unlock(struct dentry *dparent, void *lock)
 struct dentry *filter_parent(struct obd_device *obd, obd_gr group, obd_id objid)
 {
         struct filter_obd *filter = &obd->u.filter;
-        LASSERT(group < filter->fo_group_count);
-        LASSERT(group > 0);
+        LASSERTF(group < filter->fo_group_count,
+                 "group %d < filter->fo_group_count %d failed\n",
+                 (int)group, (int)filter->fo_group_count);
+        LASSERTF(group > 0, "group %d > 0 failed\n", (int)group);
 
         if (filter->fo_subdir_count == 0)
                 return filter->fo_groups[group];