summaryrefslogtreecommitdiff
path: root/kexec/arch/ppc/libfdt-wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/ppc/libfdt-wrapper.c')
-rw-r--r--kexec/arch/ppc/libfdt-wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/ppc/libfdt-wrapper.c b/kexec/arch/ppc/libfdt-wrapper.c
index f56ccc0..5fbd3a8 100644
--- a/kexec/arch/ppc/libfdt-wrapper.c
+++ b/kexec/arch/ppc/libfdt-wrapper.c
@@ -27,15 +27,15 @@
#include <page.h>
#include <libfdt.h>
#include "ops.h"
+#include "../../kexec.h"
-#define DEBUG 0
#define BAD_ERROR(err) (((err) < 0) \
&& ((err) != -FDT_ERR_NOTFOUND) \
&& ((err) != -FDT_ERR_EXISTS))
#define check_err(err) \
({ \
- if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \
+ if (BAD_ERROR(err) || ((err < 0) && kexec_debug)) \
printf("%s():%d %s\n\r", __func__, __LINE__, \
fdt_strerror(err)); \
if (BAD_ERROR(err)) \