aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-02-28 07:55:54 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-03-01 03:44:11 -0500
commit8dfe162ac74f56b382d6e3d37365672897422f51 (patch)
tree518da8788c4fb84c16b85eb64b6ad24040bb1d6e /drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
parent0f44548676b690d039286cad22f930fc23290dbf (diff)
gpu: drm: drivers: Convert printk(KERN_<LEVEL> to pr_<level>
Use a more common logging style. Miscellanea: o Coalesce formats and realign arguments o Neaten a few macros now using pr_<level> Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Rob Clark <robdclark@gmail.com> Acked-by: Sinclair Yeh <syeh@vmware.com> Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/76355db47b31668bb64d996865ceee53bd66b11f.1488285953.git.joe@perches.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_resource.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 65b3f0369636..27033d944b08 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -736,14 +736,14 @@ int vmw_user_dmabuf_lookup(struct ttm_object_file *tfile,
736 736
737 base = ttm_base_object_lookup(tfile, handle); 737 base = ttm_base_object_lookup(tfile, handle);
738 if (unlikely(base == NULL)) { 738 if (unlikely(base == NULL)) {
739 printk(KERN_ERR "Invalid buffer object handle 0x%08lx.\n", 739 pr_err("Invalid buffer object handle 0x%08lx\n",
740 (unsigned long)handle); 740 (unsigned long)handle);
741 return -ESRCH; 741 return -ESRCH;
742 } 742 }
743 743
744 if (unlikely(ttm_base_object_type(base) != ttm_buffer_type)) { 744 if (unlikely(ttm_base_object_type(base) != ttm_buffer_type)) {
745 ttm_base_object_unref(&base); 745 ttm_base_object_unref(&base);
746 printk(KERN_ERR "Invalid buffer object handle 0x%08lx.\n", 746 pr_err("Invalid buffer object handle 0x%08lx\n",
747 (unsigned long)handle); 747 (unsigned long)handle);
748 return -EINVAL; 748 return -EINVAL;
749 } 749 }