kill the machine.
Damn I hate people who kill the machine for no good reason.
list_del_init(&dev->g_list);
up(&device_sem);
- BUG_ON((dev->state != DEVICE_GONE));
+ WARN_ON(dev->state != DEVICE_GONE);
device_del(dev);
}
};
#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
+#define WARN_ON(condition) do { \
+ if (unlikely((condition)!=0)) { \
+ printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
+ dump_stack(); \
+ } \
+} while (0)
extern void BUILD_BUG(void);
#define BUILD_BUG_ON(condition) do { if (condition) BUILD_BUG(); } while(0)