From 54447ce407002637261efb262244c3777765ebec Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 23 Oct 2006 18:33:30 +0000 Subject: [PATCH] ldlm: ldlm_lock_debug(): fix it so it prints something (from Andreas via Oleg). --- lustre/ldlm/ldlm_lock.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index c70d72c..98305d0 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -1417,10 +1417,19 @@ ldlm_lock_debug(cfs_debug_limit_state_t *cdls, char *fmt, ...) { va_list args; + cfs_debug_limit_state_t savecdls; + if (cdls) + savecdls = *cdls; va_start(args, fmt); cdebug_va(cdls, level, file, func, line, fmt, args); va_end(args); + /* Don't ratelimit on the above, or we never print the below. + This isn't a complete solution, because we still print the + ratelimit warning twice. But that's better than never + printing the info below. */ + if (cdls) + *cdls = savecdls; if (lock->l_resource == NULL) { cdebug(cdls, level, file, func, line, -- 1.8.3.1