mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
qemu: fix several codecheck in qemu_monitor.c
1.clear passwd in debug log 2.alignment 3.use the same variable name for function definition and declaration Signed-off-by: Jiang Jiacheng <jiangjiacheng@huawei.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
e128d337c9
commit
fe86fc0a21
@ -2053,8 +2053,8 @@ qemuMonitorSetPassword(qemuMonitor *mon,
|
|||||||
if (!protocol)
|
if (!protocol)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
VIR_DEBUG("protocol=%s, password=%p, action_if_connected=%s",
|
VIR_DEBUG("protocol=%s, action_if_connected=%s",
|
||||||
protocol, password, action_if_connected);
|
protocol, action_if_connected);
|
||||||
|
|
||||||
QEMU_CHECK_MONITOR(mon);
|
QEMU_CHECK_MONITOR(mon);
|
||||||
|
|
||||||
|
@ -627,8 +627,8 @@ struct _qemuMonitorCPUInfo {
|
|||||||
};
|
};
|
||||||
typedef struct _qemuMonitorCPUInfo qemuMonitorCPUInfo;
|
typedef struct _qemuMonitorCPUInfo qemuMonitorCPUInfo;
|
||||||
|
|
||||||
void qemuMonitorCPUInfoFree(qemuMonitorCPUInfo *list,
|
void qemuMonitorCPUInfoFree(qemuMonitorCPUInfo *cpus,
|
||||||
size_t nitems);
|
size_t ncpus);
|
||||||
int qemuMonitorGetCPUInfo(qemuMonitor *mon,
|
int qemuMonitorGetCPUInfo(qemuMonitor *mon,
|
||||||
qemuMonitorCPUInfo **vcpus,
|
qemuMonitorCPUInfo **vcpus,
|
||||||
size_t maxvcpus,
|
size_t maxvcpus,
|
||||||
@ -1186,7 +1186,7 @@ int qemuMonitorNBDServerAdd(qemuMonitor *mon,
|
|||||||
const char *export,
|
const char *export,
|
||||||
bool writable,
|
bool writable,
|
||||||
const char *bitmap);
|
const char *bitmap);
|
||||||
int qemuMonitorNBDServerStop(qemuMonitor *);
|
int qemuMonitorNBDServerStop(qemuMonitor *mon);
|
||||||
|
|
||||||
int qemuMonitorBlockExportAdd(qemuMonitor *mon,
|
int qemuMonitorBlockExportAdd(qemuMonitor *mon,
|
||||||
virJSONValue **props);
|
virJSONValue **props);
|
||||||
|
Loading…
Reference in New Issue
Block a user