summaryrefslogtreecommitdiff
path: root/src/wayland-server.c
diff options
context:
space:
mode:
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;
}