aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_object.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-03-17 00:43:50 -0400
committerDave Airlie <airlied@redhat.com>2012-03-20 04:45:35 -0400
commit25d0479a5925562fbf999afb5a8daa3f501c729d (patch)
treefce09c17114af428b041eee88d43cf2bc50901a7 /drivers/gpu/drm/ttm/ttm_object.c
parentf10487658a0e5fd793ee5ba7ad645c060e4afbcd (diff)
drm/ttm: Use pr_fmt and pr_<level>
Use the more current logging style. Add pr_fmt and remove the TTM_PFX uses. Coalesce formats and align arguments. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_object.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_object.c b/drivers/gpu/drm/ttm/ttm_object.c
index 93577f2e2954..68daca412cbd 100644
--- a/drivers/gpu/drm/ttm/ttm_object.c
+++ b/drivers/gpu/drm/ttm/ttm_object.c
@@ -49,6 +49,8 @@
49 * for fast lookup of ref objects given a base object. 49 * for fast lookup of ref objects given a base object.
50 */ 50 */
51 51
52#define pr_fmt(fmt) "[TTM] " fmt
53
52#include "ttm/ttm_object.h" 54#include "ttm/ttm_object.h"
53#include "ttm/ttm_module.h" 55#include "ttm/ttm_module.h"
54#include <linux/list.h> 56#include <linux/list.h>
@@ -232,8 +234,7 @@ struct ttm_base_object *ttm_base_object_lookup(struct ttm_object_file *tfile,
232 return NULL; 234 return NULL;
233 235
234 if (tfile != base->tfile && !base->shareable) { 236 if (tfile != base->tfile && !base->shareable) {
235 printk(KERN_ERR TTM_PFX 237 pr_err("Attempted access of non-shareable object\n");
236 "Attempted access of non-shareable object.\n");
237 ttm_base_object_unref(&base); 238 ttm_base_object_unref(&base);
238 return NULL; 239 return NULL;
239 } 240 }