]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Use resrc=tpm in case of TPM passthrough following docs
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 24 May 2018 14:53:05 +0000 (10:53 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 6 Jun 2018 14:48:41 +0000 (10:48 -0400)
Fix the resrc field for the TPM passthrough case to show tpm.
This fixes the code to follow the documentation.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_audit.c

index 8335938c293897744b3a2835c1ed49cb7e5c620f..d9be638f053e1d3ffb9b26db30d7c62ab1a08e5b 100644 (file)
@@ -593,7 +593,7 @@ virDomainAuditTPM(virDomainObjPtr vm, virDomainTPMDefPtr tpm,
         }
 
         VIR_AUDIT(VIR_AUDIT_RECORD_RESOURCE, success,
-                  "virt=%s resrc=dev reason=%s %s uuid=%s %s",
+                  "virt=%s resrc=tpm reason=%s %s uuid=%s %s",
                   virt, reason, vmname, uuidstr, device);
         break;
     case VIR_DOMAIN_TPM_TYPE_EMULATOR: