From 4fcde1efc16ef0849c7aa61d568ef5577e2f1920 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 29 Aug 2002 07:34:49 +0000 Subject: standardize use of __FUNCTION__ (Linus) --- linux-core/drmP.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linux-core') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index f31c5c3d..799251c4 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -201,9 +201,9 @@ static inline struct page * vmalloc_to_page(void * vmalloc_addr) /* Macros to make printk easier */ #define DRM_ERROR(fmt, arg...) \ - printk(KERN_ERR "[" DRM_NAME ":" __FUNCTION__ "] *ERROR* " fmt , ##arg) + printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__ , ##arg) #define DRM_MEM_ERROR(area, fmt, arg...) \ - printk(KERN_ERR "[" DRM_NAME ":" __FUNCTION__ ":%s] *ERROR* " fmt , \ + printk(KERN_ERR "[" DRM_NAME ":%s:%s] *ERROR* " fmt , __FUNCTION__, \ DRM(mem_stats)[area].name , ##arg) #define DRM_INFO(fmt, arg...) printk(KERN_INFO "[" DRM_NAME "] " fmt , ##arg) @@ -212,8 +212,8 @@ static inline struct page * vmalloc_to_page(void * vmalloc_addr) do { \ if ( DRM(flags) & DRM_FLAG_DEBUG ) \ printk(KERN_DEBUG \ - "[" DRM_NAME ":" __FUNCTION__ "] " fmt , \ - ##arg); \ + "[" DRM_NAME ":%s] " fmt , \ + __FUNCTION__ , ##arg); \ } while (0) #else #define DRM_DEBUG(fmt, arg...) do { } while (0) -- cgit v1.2.3