diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 76e5396f..a4dcec27 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -257,7 +257,7 @@ wayland_output_get_shm_buffer(struct wayland_output *output) sb = zalloc(sizeof *sb); if (sb == NULL) { - weston_log("could not zalloc %ld memory for sb: %m\n", sizeof *sb); + weston_log("could not zalloc %zu memory for sb: %m\n", sizeof *sb); close(fd); free(data); return NULL;