mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
server: improve failure log message for wl_global_create()
The gratuitous %m jammed onto the end of the string prints errno concatenated with the word "version". I've removed the %m, and printed some additional information about the failure. Also, reversed the order of the expressions in the conditional to make it match the english in the log message. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
c5356e9016
commit
16b4cc6902
1 changed files with 4 additions and 3 deletions
|
|
@ -908,9 +908,10 @@ wl_global_create(struct wl_display *display,
|
|||
struct wl_global *global;
|
||||
struct wl_resource *resource;
|
||||
|
||||
if (interface->version < version) {
|
||||
wl_log("wl_global_create: implemented version higher "
|
||||
"than interface version%m\n");
|
||||
if (version > interface->version) {
|
||||
wl_log("wl_global_create: implemented version for '%s' "
|
||||
"higher than interface version (%d > %d)\n",
|
||||
interface->name, version, interface->version);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue