mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-02-04 23:30:30 +01:00
libweston: do not pass NULL role_name to fprintf
Makes the print-out a little bit tidier. Passing NULL for "%s" is handled by glibc gracefully, but I'm not sure what standard requires it if any. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
a2b1189306
commit
d299c6ba95
1 changed files with 3 additions and 1 deletions
|
|
@ -9615,7 +9615,9 @@ debug_scene_view_print(FILE *fp, struct weston_view *view)
|
|||
strcpy(desc, "[no description available]");
|
||||
}
|
||||
fprintf(fp, "\tView %s (role %s, PID %d, '%s'):\n",
|
||||
view->internal_name, view->surface->role_name, pid, desc);
|
||||
view->internal_name,
|
||||
view->surface->role_name ?: "none",
|
||||
pid, desc);
|
||||
|
||||
if (!weston_view_is_mapped(view))
|
||||
fprintf(fp, "\t[view is not mapped!]\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue