From d0f4b44754db733db8a180aa18c06bb17dd21b1a Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Krempa Date: Wed, 1 Mar 2023 17:09:42 +0100 Subject: [PATCH] qemu: domain: Fix logic when tainting domain Originally the code was skipping all repeated taints with the same taint flag but a logic bug introduced in commit 30626ed15b239c424ae inverted the condition. This caused that actually the first occurence was NOT logged but any subsequent was. This was noticed when going through oVirt logs as they use custom guest agent commands and the logs are totally spammed with this message. Fixes: 30626ed15b239c424ae891f096057a696eadd715 Signed-off-by: Peter Krempa Reviewed-by: Laine Stump (cherry picked from commit 9134b40d0b43a5e1a9928b0a0d948205941d9807) https://bugzilla.redhat.com/show_bug.cgi?id=2174446 --- src/qemu/qemu_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 26408b90a2..374b881146 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -6591,7 +6591,7 @@ void qemuDomainObjTaintMsg(virQEMUDriver *driver, const char *extrasuffix = ""; va_list args; - if (virDomainObjTaint(obj, taint)) { + if (!virDomainObjTaint(obj, taint)) { /* If an extra message was given we must always * emit the taint warning, otherwise it is a * one-time only warning per VM -- 2.39.2