From 11bb910224d729bd7391abbc527bf13647363812 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Mon, 20 Apr 2020 23:34:56 +0200 Subject: [PATCH] atomic: flesh out trace logs --- src/backend/drm/atomic/mod.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/backend/drm/atomic/mod.rs b/src/backend/drm/atomic/mod.rs index 3dc7064..6044d2b 100644 --- a/src/backend/drm/atomic/mod.rs +++ b/src/backend/drm/atomic/mod.rs @@ -324,7 +324,7 @@ impl Device for AtomicDrmDevice { Ok(events) => { for event in events { if let Event::PageFlip(event) = event { - trace!(self.logger, "Got event!"); + trace!(self.logger, "Got a page-flip event for crtc ({:?})", event.crtc); if self.active.load(Ordering::SeqCst) { if self .backends @@ -343,10 +343,18 @@ impl Device for AtomicDrmDevice { self.backends.borrow_mut().remove(&event.crtc); } } else { - debug!(self.logger, "Device not active. Ignoring PageFlip"); + debug!( + self.logger, + "Device ({:?}) not active. Ignoring PageFlip", + self.dev_path() + ); } } else { - trace!(self.logger, "Unrelated event"); + trace!( + self.logger, + "Got a non-page-flip event of device '{:?}'.", + self.dev_path() + ); } } }