@@ -30,8 +30,7 @@
* Keith Packard.
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_page_alloc.h>
@@ -29,8 +29,7 @@
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
@@ -29,8 +29,7 @@
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
@@ -26,8 +26,7 @@
*
**************************************************************************/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <drm/ttm/ttm_memory.h>
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_page_alloc.h>
@@ -31,8 +31,7 @@
* - doesn't track currently in use pages
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/highmem.h>
@@ -33,8 +33,7 @@
* when freed).
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <linux/dma-mapping.h>
#include <linux/list.h>
#include <linux/seq_file.h> /* for seq_printf */
@@ -29,8 +29,7 @@
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <linux/sched.h>
#include <linux/pagemap.h>
#include <linux/shmem_fs.h>
@@ -57,8 +57,7 @@
* for fast lookup of ref objects given a base object.
*/
-#define pr_fmt(fmt) "[TTM] " fmt
-
+#include <drm/ttm/ttm_debug.h>
#include <drm/ttm/ttm_module.h>
#include <linux/list.h>
#include <linux/spinlock.h>
Using the debug header instead of macro at the start of the files. Signed-off-by: Huang Rui <ray.huang@amd.com> --- drivers/gpu/drm/ttm/ttm_agp_backend.c | 3 +-- drivers/gpu/drm/ttm/ttm_bo.c | 3 +-- drivers/gpu/drm/ttm/ttm_bo_vm.c | 3 +-- drivers/gpu/drm/ttm/ttm_memory.c | 3 +-- drivers/gpu/drm/ttm/ttm_page_alloc.c | 3 +-- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 3 +-- drivers/gpu/drm/ttm/ttm_tt.c | 3 +-- drivers/gpu/drm/vmwgfx/ttm_object.c | 3 +-- 8 files changed, 8 insertions(+), 16 deletions(-)