diff options
| author | Fangzhou Ge <fangzhoug@chromium.org> | 2024-08-07 18:21:20 +0000 |
|---|---|---|
| committer | Kramer Ge <fangzhoug@google.com> | 2024-08-12 15:49:14 -0400 |
| commit | 5b692b50b9e3d379005633d4ac20068d2069849d (patch) | |
| tree | a36fa8ada59552d762610c85096fe87ff83352e1 /src | |
| parent | ci: use detached MR pipelines (diff) | |
| download | wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar.gz wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar.bz2 wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar.lz wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar.xz wayland-5b692b50b9e3d379005633d4ac20068d2069849d.tar.zst wayland-5b692b50b9e3d379005633d4ac20068d2069849d.zip | |
client: Log the object and methods when marshalling or sending fails
The log that appears before a display_error can be captured as crash
signature. Useful to know what it is.
This is cherry-picked from chromium https://crrev.com/c/4697877
Signed-off-by: Fangzhou Ge <fangzhoug@chromium.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index f7d38d4..2f6e00c 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -916,7 +916,9 @@ wl_proxy_marshal_array_flags(struct wl_proxy *proxy, uint32_t opcode, closure = wl_closure_marshal(&proxy->object, opcode, args, message); if (closure == NULL) { - wl_log("Error marshalling request: %s\n", strerror(errno)); + wl_log("Error marshalling request for %s.%s: %s\n", + proxy->object.interface->name, message->name, + strerror(errno)); display_fatal_error(proxy->display, errno); goto err_unlock; } @@ -934,7 +936,9 @@ wl_proxy_marshal_array_flags(struct wl_proxy *proxy, uint32_t opcode, } if (wl_closure_send(closure, proxy->display->connection)) { - wl_log("Error sending request: %s\n", strerror(errno)); + wl_log("Error sending request for %s.%s: %s\n", + proxy->object.interface->name, message->name, + strerror(errno)); display_fatal_error(proxy->display, errno); } |
