uterm: video: print debug messages on wakeup/sleep
This helps debugging video sleep/wakeup issues. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
0a3c34ca0e
commit
26ce0994e3
1 file changed
+4
@@ -617,6 +617,8 @@ void uterm_video_sleep(struct uterm_video *video)
|
||||
if (!video || !video_is_awake(video))
|
||||
return;
|
||||
|
||||
log_debug("go asleep");
|
||||
|
||||
VIDEO_CB(video, NULL, UTERM_SLEEP);
|
||||
video->flags &= ~VIDEO_AWAKE;
|
||||
VIDEO_CALL(video->ops->sleep, 0, video);
|
||||
@@ -631,6 +633,8 @@ int uterm_video_wake_up(struct uterm_video *video)
|
||||
if (video_is_awake(video))
|
||||
return 0;
|
||||
|
||||
log_debug("wake up");
|
||||
|
||||
ret = VIDEO_CALL(video->ops->wake_up, 0, video);
|
||||
if (ret) {
|
||||
video->flags &= ~VIDEO_AWAKE;
|
||||
|
||||
Reference in new issue
Block a user