Print object interface name when printing message arguments in debug mode
This commit is contained in:
parent
bfb8e61381
commit
0bbb97bab1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue