error: Print error_report() to stderr if using qmp
commit4ad417baa43424b6b988c52b83989fd95670c113
authorCole Robinson <crobinso@redhat.com>
Fri, 21 Mar 2014 23:42:24 +0000 (21 19:42 -0400)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 25 Apr 2014 13:19:58 +0000 (25 09:19 -0400)
tree5237e5e5e3eb78f894580829afaaacd696b7607a
parent4a66d3bf9ad3d121c32375081dc1379c3478fdb8
error: Print error_report() to stderr if using qmp

monitor_printf will drop the requested output if cur_mon is qmp (for
good reason). However these messages are often helpful for debugging
issues with via libvirt.

If we know the message won't hit the monitor, send it to stderr.

Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
util/qemu-error.c