summary refs log tree commit diff stats
path: root/monitor/hmp.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-10-28 16:13:55 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-11-02 15:55:13 +0000
commit6fa6b54f5b931e10e24f773d991a48da4f79e61a (patch)
treecb73a05e910d18e71486467401e27f0be64a542d /monitor/hmp.c
parentfa2613afa1ebe50c59606f1c30ad6738fe6919a5 (diff)
downloadfocaccia-qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.tar.gz
focaccia-qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.zip
docs/devel: update error handling guidance for HMP commands
Best practice is to use the 'hmp_handle_error' function, not
'monitor_printf' or 'error_report_err'. This ensures that the
message always gets an 'Error: ' prefix, distinguishing it
from normal command output.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'monitor/hmp.c')
0 files changed, 0 insertions, 0 deletions