1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

maint: fix comma style issues: qemu

Most of our code base uses space after comma but not before;
fix the remaining uses before adding a syntax check.

* src/qemu/qemu_cgroup.c: Consistently use commas.
* src/qemu/qemu_command.c: Likewise.
* src/qemu/qemu_conf.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/qemu/qemu_monitor.c: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Eric Blake 2013-11-19 15:45:43 -07:00
parent 86f6748bda
commit 5d509e9ee2
5 changed files with 12 additions and 11 deletions

View File

@ -216,7 +216,8 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
if (VIR_STRDUP(cfg->spiceListen, "127.0.0.1") < 0) if (VIR_STRDUP(cfg->spiceListen, "127.0.0.1") < 0)
goto error; goto error;
if (VIR_STRDUP(cfg->spiceTLSx509certdir , SYSCONFDIR "/pki/libvirt-spice") < 0) if (VIR_STRDUP(cfg->spiceTLSx509certdir,
SYSCONFDIR "/pki/libvirt-spice") < 0)
goto error; goto error;
cfg->remotePortMin = QEMU_REMOTE_PORT_MIN; cfg->remotePortMin = QEMU_REMOTE_PORT_MIN;

View File

@ -240,7 +240,7 @@ static char * qemuMonitorEscapeNonPrintable(const char *text)
if (c_isprint(text[i]) || if (c_isprint(text[i]) ||
text[i] == '\n' || text[i] == '\n' ||
(text[i] == '\r' && text[i + 1] == '\n')) (text[i] == '\r' && text[i + 1] == '\n'))
virBufferAsprintf(&buf,"%c", text[i]); virBufferAddChar(&buf, text[i]);
else else
virBufferAsprintf(&buf, "0x%02x", text[i]); virBufferAsprintf(&buf, "0x%02x", text[i]);
} }