pcrextend: fix wrong format in log

`name` is string type, should use `%s` replace `%u`
This commit is contained in:
jouyouyun
2025-11-07 16:32:40 +08:00
committed by Lennart Poettering
parent d8e38d4aaa
commit df79e5b97e

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;
}