mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
error: Functions to report warnings and informational messages
Add warn_report(), warn_vreport() for reporting warnings, and info_report(), info_vreport() for informational messages. These are implemented them with a helper function factored out of error_vreport(), suitably generalized. This patch makes no changes to the output of the original error_report() function. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <c89e9980019f296ec9aa38d7689ac4d5c369296d.1499866456.git.alistair.francis@xilinx.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
beeb175c0d
commit
97f40301f1
3 changed files with 109 additions and 6 deletions
|
@ -2535,7 +2535,11 @@ sub process {
|
|||
error_prepend|
|
||||
error_reportf_err|
|
||||
error_vreport|
|
||||
error_report}x;
|
||||
warn_vreport|
|
||||
info_vreport|
|
||||
error_report|
|
||||
warn_report|
|
||||
info_report}x;
|
||||
|
||||
if ($rawline =~ /\b(?:$qemu_error_funcs)\s*\(.*\".*\\n/) {
|
||||
ERROR("Error messages should not contain newlines\n" . $herecurr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue