chiark / gitweb /
terminal: restructure some logging calls in grdrm
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 09:41:34 +0000 (11:41 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 09:46:49 +0000 (11:46 +0200)
commitf919ad9d3dc3e25f6eed268fe7eb5e922bcdb3b6
treed343393cc5e6ffa14c43a3b6dd40df36bb74f12a
parent7b12a45b2dc6993e3f31642df2cc9b528294da40
terminal: restructure some logging calls in grdrm

Multiple issues here:
 1) Don't print excessive card dumps on each resync. Disable it and make
    developers add it themselves.
 2) Ignore EINVAL on page-flips. Some cards don't support page-flips, so
    we'd print it on each frame. Maybe, at some point, the kernel will add
    support to retrieve capabilities for that. Until then, simply ignore
    it.
 3) Replace the now dropped card-dump with a short message about resyncing
    the card.
src/libsystemd-terminal/grdev-drm.c