OSDN Git Service

error: Functions to report warnings and informational messages
authorAlistair Francis <alistair.francis@xilinx.com>
Wed, 12 Jul 2017 13:57:36 +0000 (06:57 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 13 Jul 2017 11:49:54 +0000 (13:49 +0200)
commit97f40301f1dc3a3658427d1e9d964007b6f5673b
treeaebf4c402ea3ef99310bd3028e486b6d1c32f31a
parentbeeb175c0db29a4be13625c3e53cf674c3be9267
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>
include/qemu/error-report.h
scripts/checkpatch.pl
util/qemu-error.c