diff options
author | James Maki <jmaki@multitech.com> | 2010-04-23 14:27:29 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-04-23 14:27:29 -0500 |
commit | 2134e864c823b456d6de0a128bb6c55d1a04aba7 (patch) | |
tree | 5f03b2c7015ea878b4b112ccdc615c6f8eefeb7d /src/u_boot.h | |
download | u-boot-linux-utils-2134e864c823b456d6de0a128bb6c55d1a04aba7.tar.gz u-boot-linux-utils-2134e864c823b456d6de0a128bb6c55d1a04aba7.tar.bz2 u-boot-linux-utils-2134e864c823b456d6de0a128bb6c55d1a04aba7.zip |
initial commit
Diffstat (limited to 'src/u_boot.h')
-rw-r--r-- | src/u_boot.h | 19 |
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 */ |