[PATCH] event-test: Properly terminate strings printed from callbacks

Ján Tomko jtomko at redhat.com
Fri Feb 19 14:11:47 UTC 2021


On a Friday in 2021, Kristina Hanicova wrote:
>Stdio was buffering strings in functions:
>myDomainEventBlockJobCallback,
>myDomainEventBlockThresholdCallback,
>myDomainEventMemoryFailureCallback. It caused flushing the
>printed strings from callbacks at the end of a run, not
>gradually. The solution is to add \n at the end of each string.
>
>Signed-off-by: Kristina Hanicova <khanicov at redhat.com>
>---
> examples/c/misc/event-test.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>
and pushed.

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210219/0fd8c0f2/attachment-0001.sig>


More information about the libvir-list mailing list