summaryrefslogtreecommitdiff
path: root/tools/mkimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkimage.h')
-rw-r--r--tools/mkimage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h
index cdd52bc..41cd156 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -35,6 +35,14 @@
#include <sha1.h>
#include "fdt_host.h"
+#define MKIMAGE_DEBUG
+
+#ifdef MKIMAGE_DEBUG
+#define debug(fmt,args...) printf (fmt ,##args)
+#else
+#define debug(fmt,args...)
+#endif /* MKIMAGE_DEBUG */
+
#if defined(__BEOS__) || defined(__NetBSD__) || defined(__APPLE__)
#include <inttypes.h>
#endif