mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 09:35:12 +00:00
restorer: make BUG_ON more informative
Signed-off-by: Andrey Vagin <avagin@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
2cd82bc7ff
commit
31fb055220
2 changed files with 6 additions and 2 deletions
|
|
@ -90,8 +90,12 @@ extern void printk(const char *format, ...);
|
|||
#ifdef CR_NOGLIBC
|
||||
#define BUG_ON_HANDLER(condition) \
|
||||
do { \
|
||||
if ((condition)) \
|
||||
if ((condition)) { \
|
||||
write_string("BUG at " __FILE__ ": "); \
|
||||
write_num(__LINE__); \
|
||||
write_string("\n"); \
|
||||
*(unsigned long *)NULL = 0xdead0000 + __LINE__; \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
# define BUG_ON_HANDLER(condition) \
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@
|
|||
#include "compiler.h"
|
||||
#include "types.h"
|
||||
#include "syscall.h"
|
||||
#include "restorer-log.h"
|
||||
#include "util.h"
|
||||
#include "image.h"
|
||||
|
||||
#include "crtools.h"
|
||||
#include "restorer-log.h"
|
||||
#include "lock.h"
|
||||
#include "restorer.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue