[PATCH EXAMPLE] log: exemplify how to hook up the interface on clients and compositor

Tiago Vignatti tiago.vignatti at intel.com
Fri Jul 22 13:01:52 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 clients/simple-egl.c    |    4 ++++
 compositor/compositor.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index f2a1f77..9941164 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -352,6 +352,10 @@ main(int argc, char **argv)
 	display.display = wl_display_connect(NULL);
 	assert(display.display);
 
+	wl_log(WL_INFO, "INFO\n");
+	wl_log(WL_WARNING, "WARNING\n");
+	wl_log(WL_ERROR, "ERROR\n");
+
 	wl_display_add_global_listener(display.display,
 				       display_handle_global, &display);
 
diff --git a/compositor/compositor.c b/compositor/compositor.c
index 177de54..96aba8e 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -2054,6 +2054,10 @@ int main(int argc, char *argv[])
 
 	display = wl_display_create();
 
+	wl_log(WL_INFO, "INFO\n");
+	wl_log(WL_WARNING, "WARNING\n");
+	wl_log(WL_ERROR, "ERROR\n");
+
 	ec = NULL;
 
 	if (!backend) {
-- 
1.7.2.2



More information about the wayland-devel mailing list