summaryrefslogtreecommitdiff
path: root/src/wayland-server.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-14 11:02:17 -0600
committerDerek Foreman <derekf@osg.samsung.com>2016-01-14 13:12:18 -0600
commit16b4cc6902e2755522ce792ee2796df487c0860a (patch)
tree8880cefb57ec893d7629fd54f7036b319a1b5328 /src/wayland-server.c
parentc5356e9016aa814a873a765bb2cbe57e804e5ea7 (diff)
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>
Diffstat (limited to 'src/wayland-server.c')
-rw-r--r--src/wayland-server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index 2cfbb4a..c129b7d 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -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;
}