mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-29 07:58:19 -04:00
Log number of fds
Signed-off-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
parent
5f4add98a2
commit
6d60b36f8a
1 changed files with 7 additions and 0 deletions
|
|
@ -1643,6 +1643,13 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (closure->num_fds > 0) {
|
||||||
|
if (closure->count) {
|
||||||
|
fprintf(f, ", ");
|
||||||
|
}
|
||||||
|
fprintf(f, "num_fds = %d", closure->num_fds);
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(f, ")%s\n", color ? WL_DEBUG_COLOR_RESET : "");
|
fprintf(f, ")%s\n", color ? WL_DEBUG_COLOR_RESET : "");
|
||||||
|
|
||||||
if (fclose(f) == 0) {
|
if (fclose(f) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue