Re: [Qemu-devel] [PATCH 16/20] migration-test: Make wait_command() cope with '%'

2018-07-12 Thread Juan Quintela
Markus Armbruster wrote: > wait_command() passes its argument @command to qtest_qmp_send(). > Falls apart if @command contain '%'. Two ways to disarm this trap: > suppress interpretation of '%' by passing @command as argument to > format string "%s", or fix it by having wait_command() take the >

[Qemu-devel] [PATCH 16/20] migration-test: Make wait_command() cope with '%'

2018-07-12 Thread Markus Armbruster
wait_command() passes its argument @command to qtest_qmp_send(). Falls apart if @command contain '%'. Two ways to disarm this trap: suppress interpretation of '%' by passing @command as argument to format string "%s", or fix it by having wait_command() take the variable arguments to go with @comma