Remove printable() from TSS trace events (#9889)

This commit is contained in:
Jingyu Zhou 2023-04-04 08:46:39 -07:00 committed by GitHub
parent 2cb76d06d1
commit f17e466aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ void TSS_traceMismatch(TraceEvent& event,
const GetValueRequest& req,
const GetValueReply& src,
const GetValueReply& tss) {
event.detail("Key", req.key.printable())
event.detail("Key", req.key)
.detail("Tenant", req.tenantInfo.tenantId)
.detail("Version", req.version)
.detail("SSReply", src.value.present() ? traceChecksumValue(src.value.get()) : "missing")
@ -167,10 +167,10 @@ static void traceKeyValuesDiff(TraceEvent& event,
if (i >= ssKV.size() || i >= tssKV.size() || ssKV[i] != tssKV[i]) {
event.detail("MismatchIndex", i);
if (i >= ssKV.size() || i >= tssKV.size() || ssKV[i].key != tssKV[i].key) {
event.detail("MismatchSSKey", i < ssKV.size() ? ssKV[i].key.printable() : "missing");
event.detail("MismatchTSSKey", i < tssKV.size() ? tssKV[i].key.printable() : "missing");
event.detail("MismatchSSKey", i < ssKV.size() ? ssKV[i].key : "missing"_sr);
event.detail("MismatchTSSKey", i < tssKV.size() ? tssKV[i].key : "missing"_sr);
} else {
event.detail("MismatchKey", ssKV[i].key.printable());
event.detail("MismatchKey", ssKV[i].key);
event.detail("MismatchSSValue", traceChecksumValue(ssKV[i].value));
event.detail("MismatchTSSValue", traceChecksumValue(tssKV[i].value));
}