diff --git a/layers/gpu_validation/debug_printf.cpp b/layers/gpu_validation/debug_printf.cpp index 0d3f5862e6f..b6ac99c119c 100644 --- a/layers/gpu_validation/debug_printf.cpp +++ b/layers/gpu_validation/debug_printf.cpp @@ -543,7 +543,7 @@ void DebugPrintf::AnalyzeAndGenerateMessages(VkCommandBuffer command_buffer, VkQ index += debug_record->size; } if ((use_uncached_buffer && (index >= output_buffer_size)) || - !use_uncached_buffer && (index - spvtools::kDebugOutputDataOffset) != expect) { + (!use_uncached_buffer && (index - spvtools::kDebugOutputDataOffset) != expect)) { LogWarning(device, "UNASSIGNED-DEBUG-PRINTF", "WARNING - Debug Printf message was truncated, likely due to a buffer size that was too small for the message"); }