From: yury Date: Fri, 12 Aug 2005 15:15:33 +0000 (+0000) Subject: - two ASSERTs int filter_parent() changed to ASSERTF with failed values for debug... X-Git-Tag: 1.4.10~745 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5f193c848acf756bbb2bbd945c23bdf518f65a11;p=fs%2Flustre-release.git - two ASSERTs int filter_parent() changed to ASSERTF with failed values for debug purposes. --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 738cc7b..407de16 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -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];