layers: Clarify message for unknown pNext type
Change-Id: I6f7ed5cdfc20401237833c670a8bbc83ce98579e
diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h
index 679c050..ce2497d 100644
--- a/layers/parameter_validation_utils.h
+++ b/layers/parameter_validation_utils.h
@@ -535,7 +535,6 @@
cycle_check.insert(next);
-
while (current != NULL) {
if (cycle_check.find(current->pNext) != cycle_check.end()) {
std::string message = "%s: %s chain contains a cycle -- pNext pointer " PRIx64 " is repeated.";
@@ -560,8 +559,7 @@
if (std::find(start, end, current->sType) == end) {
if (type_name == UnsupportedStructureTypeString) {
std::string message =
- "%s: %s chain includes a structure with unexpected VkStructureType (%d); Allowed "
- "structures are [%s]. ";
+ "%s: %s chain includes a structure with unknown VkStructureType (%d); Allowed structures are [%s]. ";
message += disclaimer;
skip_call |= log_msg(report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT,
0, __LINE__, INVALID_STRUCT_PNEXT, LayerName, message.c_str(), api_name,