From 325abfeed75cc14e1f415688316b2cb05edcd712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 8 May 2024 17:09:31 +0200 Subject: [PATCH] dmabuf: fix warnings on 320-bit build --- video/out/hwdec/dmabuf_interop_wl.c | 4 ++-- video/out/vo_dmabuf_wayland.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/video/out/hwdec/dmabuf_interop_wl.c b/video/out/hwdec/dmabuf_interop_wl.c index 606a0aa601..78baf146f0 100644 --- a/video/out/hwdec/dmabuf_interop_wl.c +++ b/video/out/hwdec/dmabuf_interop_wl.c @@ -46,7 +46,7 @@ static bool map(struct ra_hwdec_mapper *mapper, return false; } else if (!ra_compatible_format(mapper->ra, drm_format, mapper_p->desc.objects[0].format_modifier)) { - MP_VERBOSE(mapper, "Mapped surface with format %s; drm format '%s(%016lx)' " + MP_VERBOSE(mapper, "Mapped surface with format %s; drm format '%s(%016" PRIx64 ")' " "is not supported by compositor.\n", mp_imgfmt_to_name(mapper->src->params.hw_subfmt), mp_tag_str(drm_format), @@ -54,7 +54,7 @@ static bool map(struct ra_hwdec_mapper *mapper, return false; } - MP_VERBOSE(mapper, "Supported Wayland display format %s: '%s(%016lx)'\n", + MP_VERBOSE(mapper, "Supported Wayland display format %s: '%s(%016" PRIx64 ")'\n", mp_imgfmt_to_name(mapper->src->params.hw_subfmt), mp_tag_str(drm_format), mapper_p->desc.objects[0].format_modifier); diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c index b02833cb6d..d18ebc7d29 100644 --- a/video/out/vo_dmabuf_wayland.c +++ b/video/out/vo_dmabuf_wayland.c @@ -203,7 +203,7 @@ static void vaapi_dmabuf_importer(struct buffer *buf, struct mp_image *src, } buf->drm_format = desc.layers[layer_no].drm_format; if (!ra_compatible_format(p->ctx->ra, buf->drm_format, desc.objects[0].drm_format_modifier)) { - MP_VERBOSE(vo, "%s(%016lx) is not supported.\n", + MP_VERBOSE(vo, "%s(%016" PRIx64 ") is not supported.\n", mp_tag_str(buf->drm_format), desc.objects[0].drm_format_modifier); buf->drm_format = 0; goto done; @@ -685,7 +685,7 @@ static int reconfig(struct vo *vo, struct mp_image *img) } if (!ra_compatible_format(p->ctx->ra, p->drm_format, p->drm_modifier)) { - MP_ERR(vo, "Format '%s' with modifier '(%016lx)' is not supported by" + MP_ERR(vo, "Format '%s' with modifier '(%016" PRIx64 ")' is not supported by" " the compositor.\n", mp_tag_str(p->drm_format), p->drm_modifier); return VO_ERROR; }