Cornelia Huck c55510b722 qemu-error: add {error, warn}_report_once_cond
Add two functions to print an error/warning report once depending
on a passed-in condition variable and flip it if printed. This is
useful if you want to print a message not once-globally, but e.g.
once-per-device.

Inspired by warn_once() in hw/vfio/ccw.c, which has been replaced
with warn_report_once_cond().

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20180830145902.27376-2-cohuck@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Function comments reworded]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-09-24 17:13:07 +02:00
..
2017-09-22 14:11:25 +02:00
2017-09-22 14:11:23 +02:00
2017-09-07 19:02:30 +01:00
2018-06-29 12:32:10 +02:00
2018-06-01 16:01:29 +01:00
2018-08-23 18:46:25 +02:00
2018-08-23 18:46:25 +02:00
2018-02-08 09:22:03 +08:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00
2017-12-20 22:01:24 +08:00