log: Delete redudant qemu_log

Delete redudant qemu_log in qmp_dispatch()

Signed-off-by: Jingyi Wang <wangjingyi11@huawei.com>
This commit is contained in:
Chen Qun 2022-02-14 14:42:05 +08:00 committed by yezengruan
parent 0a858db3c0
commit 5bad885e2d

View File

@ -0,0 +1,40 @@
From 4b195103bc1e38c05eb67cd230051463b6dff03f Mon Sep 17 00:00:00 2001
From: Jingyi Wang <wangjingyi11@huawei.com>
Date: Mon, 14 Feb 2022 14:42:05 +0800
Subject: [PATCH] log: Delete redudant qemu_log
Delete redudant qemu_log in qmp_dispatch()
Signed-off-by: Jingyi Wang <wangjingyi11@huawei.com>
---
qapi/qmp-dispatch.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/qapi/qmp-dispatch.c b/qapi/qmp-dispatch.c
index 392ddb097c..e9ea5a70d4 100644
--- a/qapi/qmp-dispatch.c
+++ b/qapi/qmp-dispatch.c
@@ -222,20 +222,6 @@ QDict *qmp_dispatch(const QmpCommandList *cmds, QObject *request,
assert(!(oob && qemu_in_coroutine()));
assert(monitor_cur() == NULL);
-
- json = qobject_to_json(QOBJECT(args));
- if (json) {
- if ((strcmp(command, "query-block-jobs") != 0)
- && (strcmp(command, "query-migrate") != 0)
- && (strcmp(command, "query-blockstats") != 0)
- && (strcmp(command, "query-balloon") != 0)
- && (strcmp(command, "set_password") != 0)) {
- qemu_log("qmp_cmd_name: %s, arguments: %s\n",
- command, json->str);
- }
- g_string_free(json, true);
- }
-
if (!!(cmd->options & QCO_COROUTINE) == qemu_in_coroutine()) {
monitor_set_cur(qemu_coroutine_self(), cur_mon);
cmd->fn(args, &ret, &err);
--
2.27.0