diff --git a/log-Delete-redudant-qemu_log.patch b/log-Delete-redudant-qemu_log.patch new file mode 100644 index 0000000..cc9baab --- /dev/null +++ b/log-Delete-redudant-qemu_log.patch @@ -0,0 +1,40 @@ +From 4b195103bc1e38c05eb67cd230051463b6dff03f Mon Sep 17 00:00:00 2001 +From: Jingyi Wang +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 +--- + 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 +