summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/common-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/common-utils.c')
-rw-r--r--libglusterfs/src/common-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index 7b5e02a34..31727adf8 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -58,11 +58,11 @@ struct dnscache6 {
int
-gf_log2 (unsigned long x)
+log_base2 (unsigned long x)
{
int val = 0;
- while (x != 1) {
+ while (x > 1) {
x /= 2;
val++;
}