connection: print array size

This makes it easier to understand how an xdg_toplevel is configured for
instance.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2020-05-28 23:47:29 +02:00 committed by Daniel Stone
parent 2f05ceeb4d
commit 2aa0a83d36

View file

@ -1332,7 +1332,7 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target,
fprintf(stderr, "nil");
break;
case 'a':
fprintf(stderr, "array");
fprintf(stderr, "array[%zu]", closure->args[i].a->size);
break;
case 'h':
fprintf(stderr, "fd %d", closure->args[i].h);