From 67612fd54d8d765644bedf0994d1e9f39256a71c Mon Sep 17 00:00:00 2001 From: Alastor Wu Date: Wed, 1 Jun 2016 10:26:29 +0800 Subject: [PATCH] Bug 1240423 - part7 : add attributes for AudioChannelLog. r=baku MozReview-Commit-ID: KryRjeqBUDE --HG-- extra : rebase_source : a8a6bbfdc3314b259e7364405de9842832cc12ec --- dom/audiochannel/AudioChannelAgent.cpp | 6 +++--- dom/audiochannel/AudioChannelService.cpp | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dom/audiochannel/AudioChannelAgent.cpp b/dom/audiochannel/AudioChannelAgent.cpp index 24ff7e03b39b..ceb71ac1670e 100644 --- a/dom/audiochannel/AudioChannelAgent.cpp +++ b/dom/audiochannel/AudioChannelAgent.cpp @@ -225,8 +225,8 @@ AudioChannelAgent::NotifyStartedPlaying(AudioPlaybackConfig* aConfig, MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug, ("AudioChannelAgent, NotifyStartedPlaying, this = %p, " - "mute = %d, volume = %f, suspend = %d\n", this, - config.mMuted, config.mVolume, config.mSuspend)); + "audible = %d, mute = %d, volume = %f, suspend = %d\n", this, + aAudible, config.mMuted, config.mVolume, config.mSuspend)); aConfig->SetConfig(config.mVolume, config.mMuted, config.mSuspend); mIsRegToService = true; @@ -258,7 +258,7 @@ AudioChannelAgent::NotifyStartedAudible(bool aAudible, uint32_t aReason) { MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug, ("AudioChannelAgent, NotifyStartedAudible, this = %p, " - "audible = %d\n", this, aAudible)); + "audible = %d, reason = %d\n", this, aAudible, aReason)); RefPtr service = AudioChannelService::GetOrCreate(); if (NS_WARN_IF(!service)) { diff --git a/dom/audiochannel/AudioChannelService.cpp b/dom/audiochannel/AudioChannelService.cpp index cad23060f092..e05552d0a0d3 100644 --- a/dom/audiochannel/AudioChannelService.cpp +++ b/dom/audiochannel/AudioChannelService.cpp @@ -128,7 +128,9 @@ public: state.get()); MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug, - ("AudioPlaybackRunnable, active = %d\n", mActive)); + ("AudioPlaybackRunnable, active = %d, reason = %d\n", + mActive, mReason)); + return NS_OK; }