diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c index 6c1554e6f38..b722c0b7a19 100644 --- a/kernel/power/wakelock.c +++ b/kernel/power/wakelock.c @@ -259,7 +259,7 @@ long has_wake_lock(int type) unsigned long irqflags; spin_lock_irqsave(&list_lock, irqflags); ret = has_wake_lock_locked(type); - if (ret && (debug_mask & DEBUG_SUSPEND) && type == WAKE_LOCK_SUSPEND) + if (ret && (debug_mask & DEBUG_WAKEUP) && type == WAKE_LOCK_SUSPEND) print_active_locks(type); spin_unlock_irqrestore(&list_lock, irqflags); return ret;