]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pcrextend: fix wrong format in log
authorjouyouyun <yanbowen@uniontech.com>
Fri, 7 Nov 2025 08:32:40 +0000 (16:32 +0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Nov 2025 13:08:35 +0000 (14:08 +0100)
`name` is string type, should use `%s` replace `%u`

src/pcrextend/pcrextend.c

index 641b1e8cbe6ad82847a23bb34057ced1bd3b87d4..18d51ca2144baf6da4aa3c2b48040491597b5335 100644 (file)
@@ -345,7 +345,7 @@ static int extend_nvpcr_now(
                    "MESSAGE_ID=" SD_MESSAGE_TPM_NVPCR_EXTEND_STR,
                    LOG_MESSAGE("Extended NvPCR index '%s' with '%s'.", name, safe),
                    "MEASURING=%s", safe,
-                   "NVPCR=%u", name);
+                   "NVPCR=%s", name);
 
         return 0;
 }