1/13 2.4.22-rc2 fix __FUNCTION__ warnings drivers/char/drm-4.0
PATCH RESEND 1/1 1/13 2.4.22-rc2 fix __FUNCTION__ warnings drivers/char/drm-4.0
Hi people,
this patch fix the warning: concatenation of string literals with __FUNCTION__ is deprecated
drmP.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/char/drm-4.0/drmP.h +3 -3
@@ -257,9 +257,9 @@/* 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)
@@ -268,7 +268,7 @@do { \if (drm_flags&DRM_FLAG_DEBUG ) \printk (KERN_DEBUG \ - "[" DRM_NAME ":" __FUNCTION__ "] " fmt , \ + "[" DRM_NAME ":%s] " fmt , __FUNCTION__, \ ##arg); \ }while (0 ) #else
ciao,
djgera
Signature · 4 lines
Gerardo Exequiel Pozzi ( djgera ) http://www.vmlinuz.com.ar http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D