Skip to content

Commit 1d9a974

Browse files
committed
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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]>
1 parent 9d06b0c commit 1d9a974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int qemu_plugin_load_list(QemuPluginList *head, Error **errp)
297297
struct qemu_plugin_desc *desc, *next;
298298
g_autofree qemu_info_t *info = g_new0(qemu_info_t, 1);
299299

300-
info->target_name = TARGET_NAME;
300+
info->target_name = target_name();
301301
info->version.min = QEMU_PLUGIN_MIN_VERSION;
302302
info->version.cur = QEMU_PLUGIN_VERSION;
303303
#ifndef CONFIG_USER_ONLY

0 commit comments

Comments
 (0)