commit 3f9ed050c277e91ec0912969970fe0163a7a68ec parent 0494b4c7edf84ebb8d392022989d64a9ad733dfb Author: Michael Forney <mforney@mforney.org> Date: Wed, 4 Dec 2013 00:25:32 -0800 launch: Add debugging messages for drmDropMaster Diffstat:
M | launch/launch.c | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/launch/launch.c b/launch/launch.c @@ -94,7 +94,12 @@ static void stop_devices(bool fatal) unsigned index; for (index = 0; index < launcher.num_drm_fds; ++index) - drmDropMaster(launcher.drm_fds[index]); + { + fprintf(stderr, "Dropping DRM master\n"); + + if (drmDropMaster(launcher.drm_fds[index]) < 0) + perror("Failed to drop DRM master"); + } for (index = 0; index < launcher.num_input_fds; ++index) {