layers: Output VUIDS for PV required_pointer checks

Change-Id: I5b1a9901fdd75b35455fadd749b6ccb31236d23a
diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h
index 29327ad..a83a6a5 100644
--- a/layers/parameter_validation_utils.h
+++ b/layers/parameter_validation_utils.h
@@ -172,13 +172,13 @@
  * @return Boolean value indicating that the call should be skipped.
  */
 static bool validate_required_pointer(debug_report_data *report_data, const char *apiName, const ParameterName &parameterName,
-                                      const void *value) {
+                                      const void *value, UNIQUE_VALIDATION_ERROR_CODE vuid) {
     bool skip_call = false;
 
     if (value == NULL) {
         skip_call |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, __LINE__,
-                             REQUIRED_PARAMETER, LayerName, "%s: required parameter %s specified as NULL", apiName,
-                             parameterName.get_name().c_str());
+                             vuid, LayerName, "%s: required parameter %s specified as NULL. %s", apiName,
+                             parameterName.get_name().c_str(), validation_error_map[vuid]);
     }
 
     return skip_call;