]> xenbits.xensource.com Git - people/aperard/libvirt.git/commitdiff
security_util: fix log in virSecurityMoveRememberedLabel
authorAnastasia Belova <abelova@astralinux.ru>
Wed, 6 Dec 2023 18:45:00 +0000 (21:45 +0300)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 7 Dec 2023 10:31:30 +0000 (11:31 +0100)
Fix incorrect log message for timestamp value.
Probably this line was copied from the check for attr.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 7cfb7aab57 ("security_util: Remove stale XATTRs")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/security/security_util.c

index a4e6687561a768592ff204297d9ab73bb5cc2795..b96b4ccb1fde20b4739029369ff40b8a210feb38 100644 (file)
@@ -502,7 +502,7 @@ virSecurityMoveRememberedLabel(const char *name,
         } else if (errno != ENODATA) {
             virReportSystemError(errno,
                                  _("Unable to get XATTR %1$s on %2$s"),
-                                 attr_name, src);
+                                 timestamp_name, src);
             return -1;
         }
     }