Re: [Qemu-devel] [PATCH 1/3] qemu-error: add {error, warn}_report_once_cond

2018-08-29 Thread Cornelia Huck
On Wed, 29 Aug 2018 18:07:46 +0200 Markus Armbruster wrote: > Cornelia Huck writes: > > > 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.

Re: [Qemu-devel] [PATCH 1/3] qemu-error: add {error, warn}_report_once_cond

2018-08-29 Thread Markus Armbruster
Cornelia Huck writes: > 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. This

[Qemu-devel] [PATCH 1/3] qemu-error: add {error, warn}_report_once_cond

2018-08-28 Thread Cornelia Huck
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. Signed-off-by: Cornelia Huck --- inclu