projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb8e61
)
Print object interface name when printing message arguments in debug mode
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 7 Feb 2011 21:05:36 +0000
(16:05 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 7 Feb 2011 21:05:36 +0000
(16:05 -0500)
wayland/connection.c
patch
|
blob
|
history
diff --git
a/wayland/connection.c
b/wayland/connection.c
index
64d62db
..
4a00470
100644
(file)
--- a/
wayland/connection.c
+++ b/
wayland/connection.c
@@
-701,8
+701,12
@@
wl_closure_print(struct wl_closure *closure, struct wl_object *target)
fprintf(stderr, "\"%s\"", value->string);
break;
case 'o':
- fprintf(stderr, "object %u",
- value->object ? value->object->id : 0);
+ if (value->object)
+ fprintf(stderr, "%s@%u",
+ value->object->interface->name,
+ value->object->id);
+ else
+ fprintf(stderr, "nil");
break;
case 'n':
fprintf(stderr, "new id %u", value->uint32);