From f79d9dced0ef20f39d796f3c85d02c42a76e98c3 Mon Sep 17 00:00:00 2001 From: alwu Date: Wed, 23 Sep 2020 18:31:22 +0000 Subject: [PATCH] Bug 1659060 - part3 : update mac wakelock log. r=bryce Differential Revision: https://phabricator.services.mozilla.com/D91043 --- widget/cocoa/nsAppShell.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/cocoa/nsAppShell.mm b/widget/cocoa/nsAppShell.mm index 81f4a694f53f..f741288db5ee 100644 --- a/widget/cocoa/nsAppShell.mm +++ b/widget/cocoa/nsAppShell.mm @@ -83,8 +83,8 @@ class MacWakeLockListener final : public nsIDOMMozWakeLockListener { shouldKeepDisplayOn ? kIOPMAssertionTypeNoDisplaySleep : kIOPMAssertionTypeNoIdleSleep; IOPMAssertionID& assertionId = shouldKeepDisplayOn ? mAssertionNoDisplaySleepID : mAssertionNoIdleSleepID; - WAKE_LOCK_LOG("topic=%s, shouldKeepDisplayOn=%d", NS_ConvertUTF16toUTF8(aTopic).get(), - shouldKeepDisplayOn); + WAKE_LOCK_LOG("topic=%s, state=%s, shouldKeepDisplayOn=%d", NS_ConvertUTF16toUTF8(aTopic).get(), + NS_ConvertUTF16toUTF8(aState).get(), shouldKeepDisplayOn); // Note the wake lock code ensures that we're not sent duplicate // "locked-foreground" notifications when multiple wake locks are held.