Commit 62a15a0f authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] (1/3) 8139too -- put back old assert

For net-drivers-2.5-exp:
Minimize code changes -- put back assert() macro with similar properties
to the original.  Added unlikely() and KERN_ERR tag.
parent d59bf697
......@@ -152,7 +152,11 @@
#ifdef RTL8139_NDEBUG
# define assert(expr) do {} while (0)
#else
# define assert(expr) BUG_ON((expr) == 0)
# define assert(expr) \
if(unlikely(!(expr))) { \
printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \
#expr,__FILE__,__FUNCTION__,__LINE__); \
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment