diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2017-07-12 06:57:36 -0700 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-07-13 13:49:54 +0200 |
commit | 97f40301f1dc3a3658427d1e9d964007b6f5673b (patch) | |
tree | aebf4c402ea3ef99310bd3028e486b6d1c32f31a /scripts/checkpatch.pl | |
parent | beeb175c0db29a4be13625c3e53cf674c3be9267 (diff) | |
download | qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.zip qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.tar.gz qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.tar.bz2 |
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>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 73efc92..9287cc5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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); |