diff options
author | Joe Perches <joe@perches.com> | 2012-03-17 05:43:50 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-20 09:45:35 +0100 |
commit | 25d0479a5925562fbf999afb5a8daa3f501c729d (patch) | |
tree | fce09c17114af428b041eee88d43cf2bc50901a7 /drivers/gpu/drm/ttm/ttm_object.c | |
parent | drivers/gpu/drm/savage/savage_state.c: add missing kfree (diff) | |
download | linux-25d0479a5925562fbf999afb5a8daa3f501c729d.tar.xz linux-25d0479a5925562fbf999afb5a8daa3f501c729d.zip |
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.c | 5 |
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 @@ * for fast lookup of ref objects given a base object. */ +#define pr_fmt(fmt) "[TTM] " fmt + #include "ttm/ttm_object.h" #include "ttm/ttm_module.h" #include <linux/list.h> @@ -232,8 +234,7 @@ struct ttm_base_object *ttm_base_object_lookup(struct ttm_object_file *tfile, return NULL; if (tfile != base->tfile && !base->shareable) { - printk(KERN_ERR TTM_PFX - "Attempted access of non-shareable object.\n"); + pr_err("Attempted access of non-shareable object\n"); ttm_base_object_unref(&base); return NULL; } |