backend/drm: add wlr_drm_backend.name

Save the DRM device name in a wlr_drm_backend field, so that we can
easily use it for logging purposes.
This commit is contained in:
Simon Ser 2020-12-17 20:48:47 +01:00
parent 60001a75a2
commit 9cd3f03f65
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 5 additions and 4 deletions

View file

@ -75,6 +75,7 @@ struct wlr_drm_backend {
bool addfb2_modifiers;
int fd;
char *name;
struct wlr_device *dev;
size_t num_crtcs;