Staging: slicoss: remove DBG_ERROR macro
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Feb 2009 23:32:42 +0000 (15:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:08 +0000 (14:53 -0700)
Use the dev_err() call instead, it is the standard and provides much
more information.

Cc: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/slicoss/slicdbg.h
drivers/staging/slicoss/slicoss.c

index 12a91d7..b5643ce 100644 (file)
@@ -42,8 +42,6 @@
 #ifndef _SLIC_DEBUG_H_
 #define _SLIC_DEBUG_H_
 
-#define DBG_ERROR(n, args...)  printk(KERN_EMERG n, ##args)
-
 #ifdef ASSERT
 #undef ASSERT
 #endif
@@ -53,7 +51,7 @@
 #define ASSERT(a)                                                             \
     {                                                                         \
        if (!(a)) {                                                           \
-               DBG_ERROR("ASSERT() Failure: file %s, function %s  line %d\n",\
+               printk(KERN_ERR "ASSERT() Failure: file %s, function %s  line %d\n",\
                __FILE__, __func__, __LINE__);                          \
                slic_assert_fail();                                       \
        }                                                                 \
@@ -63,7 +61,7 @@
 #define ASSERTMSG(a,msg)                                                  \
     {                                                                     \
        if (!(a)) {                                                       \
-               DBG_ERROR("ASSERT() Failure: file %s, function %s"\
+               printk(KERN_ERR "ASSERT() Failure: file %s, function %s" \
                        "line %d: %s\n",\
                        __FILE__, __func__, __LINE__, (msg));            \
                slic_assert_fail();                                      \
Simple merge