Print object interface name when printing message arguments in debug mode

This commit is contained in:
Kristian Høgsberg 2011-02-07 16:05:36 -05:00
parent bfb8e61381
commit 0bbb97bab1
1 changed files with 6 additions and 2 deletions

View File

@ -701,8 +701,12 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target)
fprintf(stderr, "\"%s\"", value->string); fprintf(stderr, "\"%s\"", value->string);
break; break;
case 'o': case 'o':
fprintf(stderr, "object %u", if (value->object)
value->object ? value->object->id : 0); fprintf(stderr, "%s@%u",
value->object->interface->name,
value->object->id);
else
fprintf(stderr, "nil");
break; break;
case 'n': case 'n':
fprintf(stderr, "new id %u", value->uint32); fprintf(stderr, "new id %u", value->uint32);