diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2013-01-23 19:31:43 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2013-01-23 19:31:43 +0100 |
commit | 26ce0994e3e14f5338f8fd8aec629bf000db039b (patch) | |
tree | 59ef6088f60c3045a08c5be68f209d14b5fa8423 /src | |
parent | 0a3c34ca0e28349e1e7789d8844010b1a57bfbc7 (diff) |
uterm: video: print debug messages on wakeup/sleep
This helps debugging video sleep/wakeup issues.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/uterm_video.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uterm_video.c b/src/uterm_video.c index 542bb64..fc440d0 100644 --- a/src/uterm_video.c +++ b/src/uterm_video.c @@ -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; |