From: Alex Bennée Date: Tue, 4 Mar 2025 22:24:28 +0000 (+0000) Subject: plugins/loader: populate target_name with target_name() X-Git-Tag: v10.0.0-rc0~16^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d9a9743589e3622a93a46b593820ffb22cbda1b;p=thirdparty%2Fqemu.git plugins/loader: populate target_name with target_name() We have a function we can call for this, lets not rely on macros that stop us building once. Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20250304222439.2035603-22-alex.bennee@linaro.org> --- diff --git a/plugins/loader.c b/plugins/loader.c index 99686b5466..827473c8b6 100644 --- a/plugins/loader.c +++ b/plugins/loader.c @@ -297,7 +297,7 @@ int qemu_plugin_load_list(QemuPluginList *head, Error **errp) struct qemu_plugin_desc *desc, *next; g_autofree qemu_info_t *info = g_new0(qemu_info_t, 1); - info->target_name = TARGET_NAME; + info->target_name = target_name(); info->version.min = QEMU_PLUGIN_MIN_VERSION; info->version.cur = QEMU_PLUGIN_VERSION; #ifndef CONFIG_USER_ONLY