Re: [PATCH 2/2] drm/i915: Log view type when printing warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I ended up needing this bit too, so maybe better have it committed.

On ti, 2015-03-17 at 14:45 +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> It may save someone a bit of debugging time one day.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>

> Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
> ---
>  drivers/gpu/drm/i915/i915_gem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index cc8672a..e150038 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -5267,7 +5267,7 @@ i915_gem_obj_ggtt_offset_view(struct drm_i915_gem_object *o,
>  		if (vma->vm == ggtt && vma->ggtt_view.type == view)
>  			return vma->node.start;
>  
> -	WARN(1, "global vma for this object not found.\n");
> +	WARN(1, "global vma for this object not found. (view=%u)\n", view);
>  	return -1;
>  }
>  


_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux