提交 52c57c26 编写于 作者: R Robert Bragg 提交者: Chris Wilson

drm/i915/perf: improve invalid OA format debug message

A minor improvement to debugging output
Signed-off-by: NRobert Bragg <robert@sixbynine.org>
Reviewed-by: NMatthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511154345.962-7-lionel.g.landwerlin@intel.comSigned-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 0dd860cf
...@@ -1902,11 +1902,13 @@ static int read_properties_unlocked(struct drm_i915_private *dev_priv, ...@@ -1902,11 +1902,13 @@ static int read_properties_unlocked(struct drm_i915_private *dev_priv,
break; break;
case DRM_I915_PERF_PROP_OA_FORMAT: case DRM_I915_PERF_PROP_OA_FORMAT:
if (value == 0 || value >= I915_OA_FORMAT_MAX) { if (value == 0 || value >= I915_OA_FORMAT_MAX) {
DRM_DEBUG("Invalid OA report format\n"); DRM_DEBUG("Out-of-range OA report format %llu\n",
value);
return -EINVAL; return -EINVAL;
} }
if (!dev_priv->perf.oa.oa_formats[value].size) { if (!dev_priv->perf.oa.oa_formats[value].size) {
DRM_DEBUG("Invalid OA report format\n"); DRM_DEBUG("Unsupported OA report format %llu\n",
value);
return -EINVAL; return -EINVAL;
} }
props->oa_format = value; props->oa_format = value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册