diff options
author | 2024-03-27 18:39:50 +0800 | |
---|---|---|
committer | 2024-04-23 17:35:26 +0200 | |
commit | 8e3991ebc865e659e32195286caf0ca14ffcf806 (patch) | |
tree | 2c2feffeaeeddc48865bcb60efb3fbb00bb5f1f9 /plugins/api.c | |
parent | target/i386/host-cpu: Consolidate the use of warn_report_once() (diff) | |
download | qemu-8e3991ebc865e659e32195286caf0ca14ffcf806.tar.xz qemu-8e3991ebc865e659e32195286caf0ca14ffcf806.zip |
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 'plugins/api.c')
0 files changed, 0 insertions, 0 deletions