diff options
author | Thomas Hellstrom <thomas-at-shipmail-dot-org> | 2009-05-04 23:15:35 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-shipmail-dot-org> | 2009-05-04 23:16:50 +0200 |
commit | c060b56467c6de03327ad8814fac2924bde94e00 (patch) | |
tree | e17d69598d9d979fc3c3fec1f7d7d3181623c2fc | |
parent | 9d0f33b178abb871f07c88a928f3fb288664574a (diff) |
ttm: Fix up printouts.modesetting-newttm
Signed-off-by: Thomas Hellstrom <thomas-at-shipmail-dot-org>
-rw-r--r-- | linux-core/ttm/ttm_agp_backend.c | 2 | ||||
-rw-r--r-- | linux-core/ttm/ttm_bo.c | 42 | ||||
-rw-r--r-- | linux-core/ttm/ttm_bo_vm.c | 6 | ||||
-rw-r--r-- | linux-core/ttm/ttm_fence.c | 27 | ||||
-rw-r--r-- | linux-core/ttm/ttm_fence_user.c | 4 | ||||
-rw-r--r-- | linux-core/ttm/ttm_memory.c | 7 | ||||
-rw-r--r-- | linux-core/ttm/ttm_object.c | 6 | ||||
-rw-r--r-- | linux-core/ttm/ttm_pat_compat.c | 4 | ||||
-rw-r--r-- | linux-core/ttm/ttm_placement_common.h | 6 | ||||
-rw-r--r-- | linux-core/ttm/ttm_placement_user.c | 14 | ||||
-rw-r--r-- | linux-core/ttm/ttm_tt.c | 12 |
11 files changed, 64 insertions, 66 deletions
diff --git a/linux-core/ttm/ttm_agp_backend.c b/linux-core/ttm/ttm_agp_backend.c index f5aef069..47961bbe 100644 --- a/linux-core/ttm/ttm_agp_backend.c +++ b/linux-core/ttm/ttm_agp_backend.c @@ -83,7 +83,7 @@ static int ttm_agp_bind(struct ttm_backend *backend, struct ttm_mem_reg *bo_mem) ret = agp_bind_memory(mem, bo_mem->mm_node->start); if (ret) - printk(KERN_ERR "AGP Bind memory failed.\n"); + printk(KERN_ERR TTM_PFX "AGP Bind memory failed.\n"); return ret; } diff --git a/linux-core/ttm/ttm_bo.c b/linux-core/ttm/ttm_bo.c index 4f859d56..1e6e2d9c 100644 --- a/linux-core/ttm/ttm_bo.c +++ b/linux-core/ttm/ttm_bo.c @@ -244,7 +244,7 @@ static int ttm_bo_add_ttm(struct ttm_buffer_object *bo) ttm_tt_destroy(bo->ttm); break; default: - printk(KERN_ERR "Illegal buffer object type\n"); + printk(KERN_ERR TTM_PFX "Illegal buffer object type\n"); ret = -EINVAL; break; } @@ -316,7 +316,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, if (bo->evicted) { ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); if (ret) - printk(KERN_ERR "Can not flush read caches\n"); + printk(KERN_ERR TTM_PFX "Can not flush read caches\n"); bo->evicted = false; } @@ -523,7 +523,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, unsigned mem_type, spin_unlock(&bo->lock); if (ret && ret != -ERESTART) { - printk(KERN_ERR "Failed to expire sync object before " + printk(KERN_ERR TTM_PFX "Failed to expire sync object before " "buffer eviction.\n"); goto out; } @@ -543,7 +543,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, unsigned mem_type, if (ret) { if (ret != -ERESTART) - printk(KERN_ERR "Failed to find memory space for " + printk(KERN_ERR TTM_PFX "Failed to find memory space for " "buffer 0x%p eviction.\n", bo); goto out; } @@ -551,7 +551,7 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, unsigned mem_type, ret = ttm_bo_handle_move_mem(bo, &evict_mem, true, interruptible, no_wait); if (ret) { if (ret != -ERESTART) - printk(KERN_ERR "Buffer eviction failed\n"); + printk(KERN_ERR TTM_PFX "Buffer eviction failed\n"); goto out; } @@ -880,11 +880,11 @@ int ttm_buffer_object_validate(struct ttm_buffer_object *bo, interruptible, no_wait); if (ret) { if (ret != -ERESTART) - printk(KERN_ERR "Failed moving buffer. " + printk(KERN_ERR TTM_PFX "Failed moving buffer. " "Proposed placement 0x%08x\n", bo->proposed_placement); if (ret == -ENOMEM) - printk(KERN_ERR "Out of aperture space or " + printk(KERN_ERR TTM_PFX "Out of aperture space or " "DRM memory quota.\n"); return ret; } @@ -918,21 +918,21 @@ ttm_bo_check_placement(struct ttm_buffer_object *bo, uint32_t new_mask = set_flags | clr_flags; if ((bo->type == ttm_bo_type_user) && (clr_flags & TTM_PL_FLAG_CACHED)) { - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "User buffers require cache-coherent memory.\n"); return -EINVAL; } if (!capable(CAP_SYS_ADMIN)) { if (new_mask & TTM_PL_FLAG_NO_EVICT) { - printk(KERN_ERR "Need to be root to modify" + printk(KERN_ERR TTM_PFX "Need to be root to modify" " NO_EVICT status.\n"); return -EINVAL; } if ((clr_flags & bo->mem.placement & TTM_PL_MASK_MEMTYPE) && (bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { - printk(KERN_ERR "Incompatible memory specification" + printk(KERN_ERR TTM_PFX "Incompatible memory specification" " for NO_EVICT buffer.\n"); return -EINVAL; } @@ -958,7 +958,7 @@ int ttm_buffer_object_init(struct ttm_bo_device *bdev, size += buffer_start & ~PAGE_MASK; num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; if (num_pages == 0) { - printk(KERN_ERR "Illegal buffer object size.\n"); + printk(KERN_ERR TTM_PFX "Illegal buffer object size.\n"); return -EINVAL; } bo->destroy = destroy; @@ -1088,7 +1088,7 @@ static int ttm_bo_leave_list(struct ttm_buffer_object *bo, goto out; } else { ret = 0; - printk(KERN_ERR "Cleanup eviction failed\n"); + printk(KERN_ERR TTM_PFX "Cleanup eviction failed\n"); } } @@ -1136,12 +1136,12 @@ int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type) int ret = -EINVAL; if (mem_type >= TTM_NUM_MEM_TYPES) { - printk(KERN_ERR "Illegal memory type %d\n", mem_type); + printk(KERN_ERR TTM_PFX "Illegal memory type %d\n", mem_type); return ret; } if (!man->has_type) { - printk(KERN_ERR "Trying to take down uninitialized " + printk(KERN_ERR TTM_PFX "Trying to take down uninitialized " "memory manager type %u\n", mem_type); return ret; } @@ -1170,13 +1170,13 @@ int ttm_bo_evict_mm(struct ttm_bo_device *bdev, unsigned mem_type) struct ttm_mem_type_manager *man = &bdev->man[mem_type]; if (mem_type == 0 || mem_type >= TTM_NUM_MEM_TYPES) { - printk(KERN_ERR "Illegal memory manager memory type %u.\n", + printk(KERN_ERR TTM_PFX "Illegal memory manager memory type %u.\n", mem_type); return -EINVAL; } if (!man->has_type) { - printk(KERN_ERR "Memory type %u has not been initialized.\n", + printk(KERN_ERR TTM_PFX "Memory type %u has not been initialized.\n", mem_type); return 0; } @@ -1191,13 +1191,13 @@ int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, struct ttm_mem_type_manager *man; if (type >= TTM_NUM_MEM_TYPES) { - printk(KERN_ERR "Illegal memory type %d\n", type); + printk(KERN_ERR TTM_PFX "Illegal memory type %d\n", type); return ret; } man = &bdev->man[type]; if (man->has_type) { - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "Memory manager already initialized for type %d\n", type); return ret; @@ -1210,7 +1210,7 @@ int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, ret = 0; if (type != TTM_PL_SYSTEM) { if (!p_size) { - printk(KERN_ERR "Zero size memory manager type %d\n", + printk(KERN_ERR TTM_PFX "Zero size memory manager type %d\n", type); return ret; } @@ -1239,7 +1239,7 @@ int ttm_bo_device_release(struct ttm_bo_device *bdev) man->use_type = false; if ((i != TTM_PL_SYSTEM) && ttm_bo_clean_mm(bdev, i)) { ret = -EBUSY; - printk(KERN_ERR "DRM memory manager type %d " + printk(KERN_ERR TTM_PFX "DRM memory manager type %d " "is not clean.\n", i); } man->has_type = false; @@ -1318,7 +1318,7 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev, ttm_mem_init_shrink(&bdev->shrink, ttm_bo_swapout); ret = ttm_mem_register_shrink(mem_glob, &bdev->shrink); if (unlikely(ret != 0)) { - printk(KERN_ERR "Could not register buffer object swapout.\n"); + printk(KERN_ERR TTM_PFX "Could not register buffer object swapout.\n"); goto out_err2; } diff --git a/linux-core/ttm/ttm_bo_vm.c b/linux-core/ttm/ttm_bo_vm.c index 8fd21908..dee00d13 100644 --- a/linux-core/ttm/ttm_bo_vm.c +++ b/linux-core/ttm/ttm_bo_vm.c @@ -272,7 +272,7 @@ static unsigned long ttm_bo_vm_nopfn(struct vm_area_struct *vma, ret = ttm_bo_pci_offset(bdev, &bo->mem, &bus_base, &bus_offset, &bus_size); if (unlikely(ret != 0)) { - printk(KERN_ERR "Attempted buffer object access " + printk(KERN_ERR TTM_PFX "Attempted buffer object access " "of unmappable object.\n"); retval = NOPFN_SIGBUS; goto out_unlock; @@ -287,7 +287,7 @@ static unsigned long ttm_bo_vm_nopfn(struct vm_area_struct *vma, bo->vm_node->start - vma->vm_pgoff; if (unlikely(page_offset >= bo->num_pages)) { - printk(KERN_ERR "Attempted buffer object access " + printk(KERN_ERR TTM_PFX "Attempted buffer object access " "outside object.\n"); retval = NOPFN_SIGBUS; goto out_unlock; @@ -408,7 +408,7 @@ int ttm_bo_mmap(struct file *filp, struct vm_area_struct *vma, read_unlock(&bdev->vm_lock); if (unlikely(bo == NULL)) { - printk(KERN_ERR "Could not find buffer object to map.\n"); + printk(KERN_ERR TTM_PFX "Could not find buffer object to map.\n"); return -EINVAL; } diff --git a/linux-core/ttm/ttm_fence.c b/linux-core/ttm/ttm_fence.c index 2f61fadd..19d2ad16 100644 --- a/linux-core/ttm/ttm_fence.c +++ b/linux-core/ttm/ttm_fence.c @@ -35,8 +35,7 @@ #include <linux/wait.h> #include <linux/sched.h> -#include "drmP.h" - +#define TTM_PFX "[TTM] " /* * Simple implementation for now. */ @@ -45,7 +44,7 @@ static void ttm_fence_lockup(struct ttm_fence_object *fence, uint32_t mask) { struct ttm_fence_class_manager *fc = ttm_fence_fc(fence); - printk(KERN_ERR "GPU lockup dectected on engine %u " + printk(KERN_ERR TTM_PFX "GPU lockup dectected on engine %u " "fence type 0x%08x\n", (unsigned int)fence->fence_class, (unsigned int)mask); /* @@ -143,10 +142,6 @@ void ttm_fence_handler(struct ttm_fence_device *fdev, uint32_t fence_class, if (&fence->ring == &fc->ring) break; - DRM_DEBUG("Fence 0x%08lx, sequence 0x%08x, type 0x%08x\n", - (unsigned long)fence, fence->sequence, - fence->fence_type); - if (error) { fence->info.error = error; fence->info.signaled_types = fence->fence_type; @@ -161,10 +156,6 @@ void ttm_fence_handler(struct ttm_fence_device *fdev, uint32_t fence_class, if (new_type) { fence->info.signaled_types |= new_type; - DRM_DEBUG("Fence 0x%08lx signaled 0x%08x\n", - (unsigned long)fence, - fence->info.signaled_types); - if (unlikely(driver->signaled)) driver->signaled(fence); @@ -180,8 +171,6 @@ void ttm_fence_handler(struct ttm_fence_device *fdev, uint32_t fence_class, fence->waiting_types & ~fence->info.signaled_types; if (!(fence->fence_type & ~fence->info.signaled_types)) { - DRM_DEBUG("Fence completely signaled 0x%08lx\n", - (unsigned long)fence); list_del_init(&fence->ring); } } @@ -250,8 +239,8 @@ int ttm_fence_object_flush(struct ttm_fence_object *fence, uint32_t type) bool call_flush; if (type & ~fence->fence_type) { - DRM_ERROR("Flush trying to extend fence type, " - "0x%x, 0x%x\n", type, fence->fence_type); + printk(KERN_ERR TTM_PFX "Flush trying to extend fence type, " + "0x%x, 0x%x\n", type, fence->fence_type); return -EINVAL; } @@ -342,8 +331,8 @@ int ttm_fence_object_wait(struct ttm_fence_object *fence, unsigned long to_jiffies; if (mask & ~fence->fence_type) { - DRM_ERROR("Wait trying to extend fence type" - " 0x%08x 0x%08x\n", mask, fence->fence_type); + printk(KERN_ERR TTM_PFX "Wait trying to extend fence type" + " 0x%08x 0x%08x\n", mask, fence->fence_type); BUG(); return -EINVAL; } @@ -460,13 +449,13 @@ int ttm_fence_object_create(struct ttm_fence_device *fdev, ret = ttm_mem_global_alloc(fdev->mem_glob, sizeof(*fence), false, false, false); if (unlikely(ret != 0)) { - printk(KERN_ERR "Out of memory creating fence object\n"); + printk(KERN_ERR TTM_PFX "Out of memory creating fence object\n"); return ret; } fence = kmalloc(sizeof(*fence), GFP_KERNEL); if (!fence) { - printk(KERN_ERR "Out of memory creating fence object\n"); + printk(KERN_ERR TTM_PFX "Out of memory creating fence object\n"); ttm_mem_global_free(fdev->mem_glob, sizeof(*fence), false); return -ENOMEM; } diff --git a/linux-core/ttm/ttm_fence_user.c b/linux-core/ttm/ttm_fence_user.c index f382ef2c..92785c28 100644 --- a/linux-core/ttm/ttm_fence_user.c +++ b/linux-core/ttm/ttm_fence_user.c @@ -60,14 +60,14 @@ static struct ttm_fence_user_object *ttm_fence_user_object_lookup(struct base = ttm_base_object_lookup(tfile, handle); if (unlikely(base == NULL)) { - printk(KERN_ERR "Invalid fence handle 0x%08lx\n", + printk(KERN_ERR TTM_PFX "Invalid fence handle 0x%08lx\n", (unsigned long)handle); return NULL; } if (unlikely(base->object_type != ttm_fence_type)) { ttm_base_object_unref(&base); - printk(KERN_ERR "Invalid fence handle 0x%08lx\n", + printk(KERN_ERR TTM_PFX "Invalid fence handle 0x%08lx\n", (unsigned long)handle); return NULL; } diff --git a/linux-core/ttm/ttm_memory.c b/linux-core/ttm/ttm_memory.c index 73c45ed7..1ac1bb98 100644 --- a/linux-core/ttm/ttm_memory.c +++ b/linux-core/ttm/ttm_memory.c @@ -33,6 +33,7 @@ #include <linux/wait.h> #include <linux/mm.h> +#define TTM_PFX "[TTM] " #define TTM_MEMORY_ALLOC_RETRIES 4 /** @@ -119,9 +120,9 @@ int ttm_mem_global_init(struct ttm_mem_global *glob) glob->total_memory_swap_limit = glob->max_total_memory - (mem >> 3); - printk(KERN_INFO "TTM available graphics memory: %llu MiB\n", + printk(KERN_INFO TTM_PFX "TTM available graphics memory: %llu MiB\n", glob->max_total_memory >> 20); - printk(KERN_INFO "TTM available object memory: %llu MiB\n", + printk(KERN_INFO TTM_PFX "TTM available object memory: %llu MiB\n", glob->max_memory >> 20); return 0; @@ -129,7 +130,7 @@ int ttm_mem_global_init(struct ttm_mem_global *glob) void ttm_mem_global_release(struct ttm_mem_global *glob) { - printk(KERN_INFO "Used total memory is %llu bytes.\n", + printk(KERN_INFO TTM_PFX "Used total memory is %llu bytes.\n", (unsigned long long)glob->used_total_memory); flush_workqueue(glob->swap_queue); destroy_workqueue(glob->swap_queue); diff --git a/linux-core/ttm/ttm_object.c b/linux-core/ttm/ttm_object.c index 45cd2bb1..48a5df01 100644 --- a/linux-core/ttm/ttm_object.c +++ b/linux-core/ttm/ttm_object.c @@ -36,6 +36,8 @@ * and release on file close. */ +#define TTM_PFX "[TTM] " + /** * struct ttm_object_file * @@ -126,7 +128,6 @@ static void ttm_object_file_destroy(struct kref *kref) struct ttm_object_file *tfile = container_of(kref, struct ttm_object_file, refcount); - printk(KERN_INFO "Freeing 0x%08lx\n", (unsigned long) tfile); kfree(tfile); } @@ -198,7 +199,6 @@ void ttm_base_object_unref(struct ttm_base_object **p_base) struct ttm_base_object *base = *p_base; struct ttm_object_device *tdev = base->tfile->tdev; - // printk(KERN_INFO "TTM base object unref.\n"); *p_base = NULL; /* @@ -232,7 +232,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 "Attempted access of non-shareable object.\n"); + printk(KERN_ERR TTM_PFX "Attempted access of non-shareable object.\n"); ttm_base_object_unref(&base); return NULL; } diff --git a/linux-core/ttm/ttm_pat_compat.c b/linux-core/ttm/ttm_pat_compat.c index c32dbb2f..41e57812 100644 --- a/linux-core/ttm/ttm_pat_compat.c +++ b/linux-core/ttm/ttm_pat_compat.c @@ -43,6 +43,8 @@ #include <linux/notifier.h> #include <linux/cpu.h> +#define TTM_PFX "[TTM] " + #ifndef MSR_IA32_CR_PAT #define MSR_IA32_CR_PAT 0x0277 #endif @@ -77,7 +79,7 @@ static void ttm_pat_enable(void) #else if (on_each_cpu(ttm_pat_ipi_handler, NULL, 1) != 0) { #endif - printk(KERN_ERR "Timed out setting up CPU PAT.\n"); + printk(KERN_ERR TTM_PFX "Timed out setting up CPU PAT.\n"); } } diff --git a/linux-core/ttm/ttm_placement_common.h b/linux-core/ttm/ttm_placement_common.h index 7e259f9c..7be6754c 100644 --- a/linux-core/ttm/ttm_placement_common.h +++ b/linux-core/ttm/ttm_placement_common.h @@ -91,4 +91,10 @@ #define TTM_ACCESS_READ (1 << 0) #define TTM_ACCESS_WRITE (1 << 1) +/** + * Log message prefix. + */ + +#define TTM_PFX "[TTM] " + #endif diff --git a/linux-core/ttm/ttm_placement_user.c b/linux-core/ttm/ttm_placement_user.c index 93815a46..76291e19 100644 --- a/linux-core/ttm/ttm_placement_user.c +++ b/linux-core/ttm/ttm_placement_user.c @@ -61,14 +61,14 @@ static struct ttm_bo_user_object *ttm_bo_user_lookup(struct ttm_object_file base = ttm_base_object_lookup(tfile, handle); if (unlikely(base == NULL)) { - printk(KERN_ERR "Invalid buffer object handle 0x%08lx.\n", + printk(KERN_ERR TTM_PFX "Invalid buffer object handle 0x%08lx.\n", (unsigned long)handle); return NULL; } if (unlikely(base->object_type != ttm_buffer_type)) { ttm_base_object_unref(&base); - printk(KERN_ERR "Invalid buffer object handle 0x%08lx.\n", + printk(KERN_ERR TTM_PFX "Invalid buffer object handle 0x%08lx.\n", (unsigned long)handle); return NULL; } @@ -292,14 +292,14 @@ int ttm_pl_reference_ioctl(struct ttm_object_file *tfile, void *data) user_bo = ttm_bo_user_lookup(tfile, arg->req.handle); if (unlikely(user_bo == NULL)) { - printk(KERN_ERR "Could not reference buffer object.\n"); + printk(KERN_ERR TTM_PFX "Could not reference buffer object.\n"); return -EINVAL; } bo = &user_bo->bo; ret = ttm_ref_object_add(tfile, &user_bo->base, TTM_REF_USAGE, NULL); if (unlikely(ret != 0)) { - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "Could not add a reference to buffer object.\n"); goto out; } @@ -332,7 +332,7 @@ int ttm_pl_synccpu_ioctl(struct ttm_object_file *tfile, void *data) case TTM_PL_SYNCCPU_OP_GRAB: user_bo = ttm_bo_user_lookup(tfile, arg->handle); if (unlikely(user_bo == NULL)) { - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "Could not find buffer object for synccpu.\n"); return -EINVAL; } @@ -375,7 +375,7 @@ int ttm_pl_setstatus_ioctl(struct ttm_object_file *tfile, bo = ttm_buffer_object_lookup(tfile, req->handle); if (unlikely(bo == NULL)) { - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "Could not find buffer object for setstatus.\n"); return -EINVAL; } @@ -423,7 +423,7 @@ int ttm_pl_waitidle_ioctl(struct ttm_object_file *tfile, void *data) bo = ttm_buffer_object_lookup(tfile, arg->handle); if (unlikely(bo == NULL)) { - printk(KERN_ERR "Could not find buffer object for waitidle.\n"); + printk(KERN_ERR TTM_PFX "Could not find buffer object for waitidle.\n"); return -EINVAL; } diff --git a/linux-core/ttm/ttm_tt.c b/linux-core/ttm/ttm_tt.c index afd60e71..4b891f09 100644 --- a/linux-core/ttm/ttm_tt.c +++ b/linux-core/ttm/ttm_tt.c @@ -86,7 +86,7 @@ void ttm_tt_cache_flush(struct page *pages[], unsigned long num_pages) } #else if (on_each_cpu(ttm_tt_ipi_handler, NULL, 1, 1) != 0) - printk(KERN_ERR "Timed out waiting for drm cache flush.\n"); + printk(KERN_ERR TTM_PFX "Timed out waiting for drm cache flush.\n"); #endif } @@ -341,7 +341,7 @@ static void ttm_tt_free_alloced_pages(struct ttm_tt *ttm) ttm->pages[i] = NULL; if (cur_page) { if (page_count(cur_page) != 1) - printk(KERN_ERR + printk(KERN_ERR TTM_PFX "Erroneous page count. Leaking pages.\n"); ttm_mem_global_free(ttm->bdev->mem_glob, PAGE_SIZE, PageHighMem(cur_page)); @@ -446,13 +446,13 @@ struct ttm_tt *ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size, ttm_tt_alloc_page_directory(ttm); if (!ttm->pages) { ttm_tt_destroy(ttm); - printk(KERN_ERR "Failed allocating page table\n"); + printk(KERN_ERR TTM_PFX "Failed allocating page table\n"); return NULL; } ttm->be = bo_driver->create_ttm_backend_entry(bdev); if (!ttm->be) { ttm_tt_destroy(ttm); - printk(KERN_ERR "Failed creating ttm backend entry\n"); + printk(KERN_ERR TTM_PFX "Failed creating ttm backend entry\n"); return NULL; } ttm->state = tt_unpopulated; @@ -490,7 +490,7 @@ int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) ret = be->func->bind(be, bo_mem); if (ret) { - printk(KERN_ERR "Couldn't bind backend.\n"); + printk(KERN_ERR TTM_PFX "Couldn't bind backend.\n"); return ret; } @@ -587,7 +587,7 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistant_swap_storage) ttm->num_pages << PAGE_SHIFT, 0); if (unlikely(IS_ERR(swap_storage))) { - printk(KERN_ERR "Failed allocating swap storage.\n"); + printk(KERN_ERR TTM_PFX "Failed allocating swap storage.\n"); return -ENOMEM; } #else |