projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08bc36
)
window: Add a log handler for window.c clients
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 16 Apr 2013 15:21:48 +0000
(11:21 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 17 Apr 2013 00:46:59 +0000
(20:46 -0400)
This way we can see what kind of error we get if we get an error.
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
073ce53
..
2540cc9
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-4383,11
+4383,19
@@
handle_display_data(struct task *task, uint32_t events)
}
}
+static void
+log_handler(const char *format, va_list args)
+{
+ vfprintf(stderr, format, args);
+}
+
struct display *
display_create(int *argc, char *argv[])
{
struct display *d;
+ wl_log_set_handler_client(log_handler);
+
d = malloc(sizeof *d);
if (d == NULL)
return NULL;