提交 b5f70028 编写于 作者: V vit9696

OcSerializeLib: Improve printing even further

上级 cd25e1e3
......@@ -180,10 +180,11 @@ ParseSerializedValue (
if (Result == FALSE) {
DEBUG ((
DEBUG_WARN, "OCS: Failed to parse %a field as type %a with <%.16a> contents\n",
DEBUG_WARN,
"OCS: Failed to parse %a field as value with type %a and <%a> contents\n",
XmlNodeName (Node),
GetSchemaTypeName (Info->Value.Type),
XmlNodeContent (Node)
XmlNodeContent (Node) != NULL ? XmlNodeContent (Node) : "empty"
));
}
}
......@@ -218,9 +219,9 @@ ParseSerializedBlob (
if (Result == FALSE) {
DEBUG ((
DEBUG_WARN,
"OCS: Failed to calculate size of %a field containing <%.16a> as type %u\n",
"OCS: Failed to calculate size of %a field containing <%a> as type %a\n",
XmlNodeName (Node),
XmlNodeContent (Node),
XmlNodeContent (Node) != NULL ? XmlNodeContent (Node) : "empty",
GetSchemaTypeName (Info->Blob.Type)
));
return;
......@@ -232,10 +233,10 @@ ParseSerializedBlob (
if (BlobMemory == NULL) {
DEBUG ((
DEBUG_INFO,
"OCS: Failed to allocate %u bytes %a field of type %u\n",
"OCS: Failed to allocate %u bytes %a field of type %a\n",
Size,
XmlNodeName (Node),
Info->Blob.Type
GetSchemaTypeName (Info->Value.Type)
));
return;
}
......@@ -257,10 +258,10 @@ ParseSerializedBlob (
if (Result == FALSE) {
DEBUG ((
DEBUG_WARN,
"OCS: Failed to parse %a field as type %a with <%.16a> contents\n",
"OCS: Failed to parse %a field as blob with type %a and <%a> contents\n",
XmlNodeName (Node),
GetSchemaTypeName (Info->Value.Type),
XmlNodeContent (Node)
XmlNodeContent (Node) != NULL ? XmlNodeContent (Node) : "empty"
));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册