diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-02-07 16:05:36 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-02-07 16:05:36 -0500 |
commit | 0bbb97bab140bc0eab425ed5f40286e1ae168d71 (patch) | |
tree | a2ea5664177f31417fa374722dcb080480bc40c2 | |
parent | bfb8e61381794c7d91a90e71f0f1a6e9039159a2 (diff) |
Print object interface name when printing message arguments in debug mode
-rw-r--r-- | wayland/connection.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wayland/connection.c b/wayland/connection.c index 64d62db..4a00470 100644 --- 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); |