diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-03-27 18:39:50 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 17:35:26 +0200 |
commit | 8e3991ebc865e659e32195286caf0ca14ffcf806 (patch) | |
tree | 2c2feffeaeeddc48865bcb60efb3fbb00bb5f1f9 /scripts/python_qmp_updater.py | |
parent | 7502ffb2f3240247e9426fd73b8422e5be54501a (diff) | |
download | qemu-8e3991ebc865e659e32195286caf0ca14ffcf806.zip qemu-8e3991ebc865e659e32195286caf0ca14ffcf806.tar.gz qemu-8e3991ebc865e659e32195286caf0ca14ffcf806.tar.bz2 |
target/i386/cpu: Consolidate the use of warn_report_once()
The difference between error_printf() and error_report() is the latter
may contain more information, such as the name of the program
("qemu-system-x86_64").
Thus its variant error_report_once() and warn_report()'s variant
warn_report_once() can be used here to print the information only once
without a static local variable "ht_warned".
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20240327103951.3853425-3-zhao1.liu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/python_qmp_updater.py')
0 files changed, 0 insertions, 0 deletions