Whamcloud - gitweb
b=22407 substitute %i with %d
[fs/lustre-release.git] / lustre / obdclass / lu_ref.c
index 01d31b6..aa2c366 100644 (file)
@@ -26,7 +26,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
@@ -70,8 +70,8 @@
                   lu_ref_print(__ref);                  \
                   cfs_spin_unlock(&__ref->lf_guard);    \
                   lu_ref_print_all();                   \
-                  cfs_spin_lock(&__ref->lf_guard);      \
                   LASSERT(0);                           \
+                  cfs_spin_lock(&__ref->lf_guard);      \
           }                                             \
   } while (0)
 
@@ -239,7 +239,7 @@ static struct lu_ref_link *lu_ref_find(struct lu_ref *ref, const char *scope,
                 ++iterations;
                 if (lu_ref_link_eq(link, scope, source)) {
                         if (iterations > lu_ref_chain_max_length) {
-                                CWARN("Long lu_ref chain %i \"%s\":%p\n",
+                                CWARN("Long lu_ref chain %d \"%s\":%p\n",
                                       iterations, scope, source);
                                 lu_ref_chain_max_length = iterations * 3 / 2;
                         }