aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAni Sinha <anisinha@redhat.com>2024-08-28 18:15:39 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-02 12:58:46 +0200
commit804dfbe3ef5e950328b162ae85741be2e228544f (patch)
tree2a66ee990853975767a93c9158ff455b0e43501b /python
parent87e82951c155175c8681509e8d25a6dac919c0c9 (diff)
downloadqemu-804dfbe3ef5e950328b162ae85741be2e228544f.zip
qemu-804dfbe3ef5e950328b162ae85741be2e228544f.tar.gz
qemu-804dfbe3ef5e950328b162ae85741be2e228544f.tar.bz2
kvm: replace fprintf with error_report()/printf() in kvm_init()
error_report() is more appropriate for error situations. Replace fprintf with error_report() and error_printf() as appropriate. Some improvement in error reporting also happens as a part of this change. For example: From: $ ./qemu-system-x86_64 --accel kvm Could not access KVM kernel module: No such file or directory To: $ ./qemu-system-x86_64 --accel kvm qemu-system-x86_64: --accel kvm: Could not access KVM kernel module: No such file or directory CC: qemu-trivial@nongnu.org CC: zhao1.liu@intel.com CC: armbru@redhat.com Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Ani Sinha <anisinha@redhat.com> Link: https://lore.kernel.org/r/20240828124539.62672-1-anisinha@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions