summaryrefslogtreecommitdiff
path: root/src/u_boot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/u_boot.h')
-rw-r--r--src/u_boot.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/u_boot.h b/src/u_boot.h
new file mode 100644
index 0000000..5106601
--- /dev/null
+++ b/src/u_boot.h
@@ -0,0 +1,19 @@
+#ifndef __U_BOOT_H
+#define __U_BOOT_H
+
+#include "config.h"
+
+#if DEBUG
+#define dbg(format, arg...) fprintf(stderr, "DEBUG: %s:%s:%d: " format "\n" , __FILE__ , __func__ , __LINE__ , ## arg)
+#else
+#define dbg(format, arg...) do {} while (0)
+#endif
+
+#define error(format, arg...) fprintf(stderr, "ERROR: %s:%s:%d: " format "\n" , __FILE__ , __func__ , __LINE__ , ## arg)
+
+enum {
+ false,
+ true,
+};
+
+#endif /* ~__U_BOOT_H */