[Qemu-block] [PATCH v3 1/2] Add a simple mechanism to protect against error message floods.

2015-07-08 Thread Richard W.M. Jones
You can now write code like this: FLOOD_COUNTER(errcount, 100); ... NO_FLOOD(errcount, error_report(oops, something bad happened), error_report(further errors suppressed)); which would print the oops, ... error message up to 100 times, followed by the further errors

Re: [Qemu-block] [PATCH v3 1/2] Add a simple mechanism to protect against error message floods.

2015-07-08 Thread Kevin Wolf
Am 08.07.2015 um 14:50 hat Richard W.M. Jones geschrieben: You can now write code like this: FLOOD_COUNTER(errcount, 100); ... NO_FLOOD(errcount, error_report(oops, something bad happened), error_report(further errors suppressed)); which would print the oops,