Re: [Qemu-devel] [PATCH v4 11/22] test-qga: Simplify command construction

2017-08-09 Thread Eric Blake
On 08/09/2017 06:40 AM, Markus Armbruster wrote: > Eric Blake writes: > >> When you build qga input manually like this: >> >> cmd = g_strdup_printf("{'execute': 'guest-file-write'," >> " 'arguments': {'handle': %" PRId64 "," >> " 'buf-b64':

Re: [Qemu-devel] [PATCH v4 11/22] test-qga: Simplify command construction

2017-08-09 Thread Markus Armbruster
Eric Blake writes: > When you build qga input manually like this: > > cmd = g_strdup_printf("{'execute': 'guest-file-write'," > " 'arguments': {'handle': %" PRId64 "," > " 'buf-b64': '%s' } }", id, enc); > ret = qmp_fd(fixture->fd, cmd);

[Qemu-devel] [PATCH v4 11/22] test-qga: Simplify command construction

2017-08-03 Thread Eric Blake
When you build qga input manually like this: cmd = g_strdup_printf("{'execute': 'guest-file-write'," " 'arguments': {'handle': %" PRId64 "," " 'buf-b64': '%s' } }", id, enc); ret = qmp_fd(fixture->fd, cmd); g_free(cmd); you're respon