pcrextend: fix wrong format in log

`name` is string type, should use `%s` replace `%u`
This commit is contained in:
jouyouyun
2025-11-07 14:08:35 +01:00
committed by Lennart Poettering
parent d8e38d4aaa
commit df79e5b97e
+1 -1
View 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;
}