Log the reason for every suspend/resume.
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 16 Nov 2012 16:24:34 +0000 (18:24 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:47 +0000 (12:31 +0200)
commit0f44b1e820c1744bfb46d37e87b71d64109c4374
treea2335b96d34d3e495d0228af2fc610572e81c6ab
parent28c49a12fc83b7487f367b4186de10ff29a23a2e
Log the reason for every suspend/resume.

I was looking at a log that showed that a suspend happened (at
a strange time), but the log didn't tell me why the suspend was done.
This patch tries to make sure that that won't happen again.
12 files changed:
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/bluetooth/module-bluetooth-device.c
src/modules/dbus/iface-device.c
src/modules/module-suspend-on-idle.c
src/modules/module-udev-detect.c
src/modules/module-virtual-source.c
src/pulsecore/cli-command.c
src/pulsecore/protocol-esound.c
src/pulsecore/protocol-native.c
src/pulsecore/sink.c
src/pulsecore/source.c