]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/monitor: Use hmp_handle_error to report error
authorBin Guo <guobin@linux.alibaba.com>
Tue, 16 Sep 2025 05:48:50 +0000 (13:48 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Oct 2025 11:10:09 +0000 (12:10 +0100)
commitdec83ac02bee2f57f5b646dc1bedc5c200f3d679
treeed50b250334f77983411350f7fa159038db9b04b
parentc86488abaf017ed3f5a636c3247cd640a93d3b08
block/monitor: Use hmp_handle_error to report error

According to writing-monitor-commands.rst, best practice is to
use the 'hmp_handle_error' function, which ensures that the
message gets an 'Error: ' prefix.

Signed-off-by: Bin Guo <guobin@linux.alibaba.com>
Message-ID: <20250916054850.40963-1-guobin@linux.alibaba.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
[kwolf: Fixed up iotests reference output]
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/monitor/block-hmp-cmds.c
tests/qemu-iotests/267.out