diff options
| author | Ani Sinha <anisinha@redhat.com> | 2024-08-28 18:15:39 +0530 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-02 12:58:46 +0200 |
| commit | 804dfbe3ef5e950328b162ae85741be2e228544f (patch) | |
| tree | 2a66ee990853975767a93c9158ff455b0e43501b /python/qemu/utils/qom.py | |
| parent | 87e82951c155175c8681509e8d25a6dac919c0c9 (diff) | |
| download | focaccia-qemu-804dfbe3ef5e950328b162ae85741be2e228544f.tar.gz focaccia-qemu-804dfbe3ef5e950328b162ae85741be2e228544f.zip | |
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/qemu/utils/qom.py')
0 files changed, 0 insertions, 0 deletions