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:
Jiang Jiacheng 2022-12-08 20:52:35 +08:00 committed by Martin Kletzander
parent e128d337c9
commit fe86fc0a21
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);