Skip to content

Commit

Permalink
additional debug log statement, fix comparison in if operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lvs1974 committed Jan 9, 2023
1 parent d1c1aa1 commit f2891ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions HibernationFixup/kern_hbfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,11 @@ IOReturn HBFX::X86PlatformPlugin_sleepPolicyHandler(void * target, IOPMSystemSle
tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_hour, tm.tm_min, tm.tm_sec, vars->standbyTimer);
}
}

if (callbackHBFX->sleepPhase < kIOPMSleepPhase2 && setupHibernate)

DBGLOG("HBFX", "Auto hibernate: setupHibernate %d, wakeCalendarSet %d, sleepServiceWake %d, standby_delay %d",
setupHibernate, callbackHBFX->wakeCalendarSet, callbackHBFX->sleepServiceWake, standby_delay);

if ((callbackHBFX->sleepPhase < kIOPMSleepPhase2) && setupHibernate)
{
vars->sleepFactors = callbackHBFX->sleepFactors;
vars->sleepReason = callbackHBFX->sleepReason;
Expand Down

0 comments on commit f2891ef

Please sign in to comment.