Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit bf231b4

Browse files
YadongQisysopenci
authored andcommitted
Support extend of name
with this patch, name field can be extend with debug-threads param Tracked-On: OAM-102727 Signed-off-by: Yadong Qi <yadong.qi@intel.com>
1 parent 0af057d commit bf231b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/guest/start.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ int start_guest(char *name)
902902
cx = snprintf(p, size, " -name %s", val);
903903
p += cx; size -= cx;
904904

905-
cx = snprintf(p, size, " -qmp unix:%s/.%s"CIV_GUEST_QMP_SUFFIX",server,nowait", civ_config_path, val);
905+
char *qname = strtok(val, ",");
906+
cx = snprintf(p, size, " -qmp unix:%s/.%s"CIV_GUEST_QMP_SUFFIX",server,nowait", civ_config_path, qname);
906907
p += cx; size -= cx;
907908

908909
val = g_key_file_get_string(gkf, g->name, g->key[GLOB_VSOCK_CID], NULL);

0 commit comments

Comments
 (0)