mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 04:12:20 +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
@ -943,7 +943,7 @@ qemuMonitorInitBalloonObjectPath(qemuMonitor *mon,
|
|||||||
case VIR_DOMAIN_MEMBALLOON_MODEL_XEN:
|
case VIR_DOMAIN_MEMBALLOON_MODEL_XEN:
|
||||||
case VIR_DOMAIN_MEMBALLOON_MODEL_NONE:
|
case VIR_DOMAIN_MEMBALLOON_MODEL_NONE:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("invalid model for virtio-balloon-pci"));
|
_("invalid model for virtio-balloon-pci"));
|
||||||
return;
|
return;
|
||||||
case VIR_DOMAIN_MEMBALLOON_MODEL_LAST:
|
case VIR_DOMAIN_MEMBALLOON_MODEL_LAST:
|
||||||
default:
|
default:
|
||||||
@ -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);
|
||||||
|
|
||||||
@ -3488,7 +3488,7 @@ qemuMonitorBlockExportAdd(qemuMonitor *mon,
|
|||||||
|
|
||||||
int
|
int
|
||||||
qemuMonitorGetTPMModels(qemuMonitor *mon,
|
qemuMonitorGetTPMModels(qemuMonitor *mon,
|
||||||
char ***tpmmodels)
|
char ***tpmmodels)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("tpmmodels=%p", tpmmodels);
|
VIR_DEBUG("tpmmodels=%p", tpmmodels);
|
||||||
|
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user