Whamcloud - gitweb
LU-11373 libcfs: fix wrong check in libcfs_debug_vmsg2()
[fs/lustre-release.git] / libcfs / libcfs / workitem.c
index 40d5331..5069ccd 100644 (file)
@@ -23,7 +23,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, 2014, Intel Corporation.
+ * Copyright (c) 2011, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -313,7 +313,7 @@ cfs_wi_sched_destroy(struct cfs_wi_sched *sched)
                int i = 2;
 
                while (sched->ws_nthreads > 0) {
-                       CDEBUG(IS_PO2(++i) ? D_WARNING : D_NET,
+                       CDEBUG(is_power_of_2(++i) ? D_WARNING : D_NET,
                               "waiting for %d threads of WI sched[%s] to "
                               "terminate\n", sched->ws_nthreads,
                               sched->ws_name);