Skip to content

Commit

Permalink
Staging: slicoss: remove DBG_ERROR macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent e5bac59 commit 4bee4f6
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 119 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/slicoss/slicdbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(); \
} \
Expand All @@ -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(); \
Expand Down
Loading

0 comments on commit 4bee4f6

Please sign in to comment.