From 7e9feb70a0b50caf7e9072d3b5c77b4e91235efa Mon Sep 17 00:00:00 2001
From: Scott Anderson <ascent12@hotmail.com>
Date: Thu, 4 May 2017 21:58:11 +1200
Subject: Fixed hotplugging + make EGL more chatty.

---
 example/example-drm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'example')

diff --git a/example/example-drm.c b/example/example-drm.c
index a2643949..1b1cce79 100644
--- a/example/example-drm.c
+++ b/example/example-drm.c
@@ -22,6 +22,7 @@ struct state {
 void output_add(struct wl_listener *listener, void *data)
 {
 	struct wlr_drm_output *out = data;
+	fprintf(stderr, "Output '%s' added\n", wlr_drm_output_get_name(out));
 
 	size_t num_modes;
 	struct wlr_drm_mode *modes = wlr_drm_output_get_modes(out, &num_modes);
@@ -31,7 +32,8 @@ void output_add(struct wl_listener *listener, void *data)
 
 void output_rem(struct wl_listener *listener, void *data)
 {
-	fprintf(stderr, "Output removed\n");
+	struct wlr_drm_output *out = data;
+	fprintf(stderr, "Output '%s' removed\n", wlr_drm_output_get_name(out));
 }
 
 void output_render(struct wl_listener *listener, void *data)
-- 
cgit v1.2.3