From 5066ea9a72b2ad96c82dd6b5eba36539cd96450a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 Apr 2024 12:48:09 +0200 Subject: [PATCH] v4l2: fix printf format --- spa/plugins/v4l2/v4l2-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/v4l2/v4l2-device.c b/spa/plugins/v4l2/v4l2-device.c index f7709ed6e..b43025562 100644 --- a/spa/plugins/v4l2/v4l2-device.c +++ b/spa/plugins/v4l2/v4l2-device.c @@ -84,7 +84,7 @@ static int emit_info(struct impl *this, bool full) /* encode device number into a json array */ spa_strbuf_init(&buf, devices_str, sizeof(devices_str)); spa_strbuf_append(&buf, "[ "); - spa_strbuf_append(&buf, (char *)this->props.devnum); + spa_strbuf_append(&buf, "%s", this->props.devnum); spa_strbuf_append(&buf, " ]"); ADD_ITEM(SPA_KEY_DEVICE_DEVIDS, devices_str);