From 34be6c76a6062587e9d28d9b328010c0cc614b4b 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 d7677e140..586578d82 100644 --- a/spa/plugins/v4l2/v4l2-device.c +++ b/spa/plugins/v4l2/v4l2-device.c @@ -86,7 +86,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);