summaryrefslogtreecommitdiff
path: root/include/common/debug.h
diff options
context:
space:
mode:
authorDan Handley <dan.handley@arm.com>2014-07-25 14:54:38 +0100
committerDan Handley <dan.handley@arm.com>2014-07-25 14:54:38 +0100
commit705bf6806ba03169966a7c7df53a195d0255fefa (patch)
treed10f1c88279c9c5d481c82d6302d3989abc9bb3c /include/common/debug.h
parenta1a441775f64da2cbbd42c4f2c6f818f93278fca (diff)
parentb79af9344503b2d7b435451cfb8b1ab80b8afdf4 (diff)
Merge pull request #174 from soby-mathew:sm/lean_printf_v2
Implement a leaner printf for Trusted Firmware
Diffstat (limited to 'include/common/debug.h')
-rw-r--r--include/common/debug.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/common/debug.h b/include/common/debug.h
index 5b496d76..c70109fd 100644
--- a/include/common/debug.h
+++ b/include/common/debug.h
@@ -43,14 +43,14 @@
* TODO : add debug levels.
*/
#if DEBUG
- #define INFO(...) printf("INFO: " __VA_ARGS__)
- #define WARN(...) printf("WARN: " __VA_ARGS__)
+ #define INFO(...) tf_printf("INFO: " __VA_ARGS__)
+ #define WARN(...) tf_printf("WARN: " __VA_ARGS__)
#else
#define INFO(...)
#define WARN(...)
#endif
-#define ERROR(...) printf("ERROR: " __VA_ARGS__)
+#define ERROR(...) tf_printf("ERROR: " __VA_ARGS__)
/* For the moment this Panic function is very basic, Report an error and
@@ -67,5 +67,7 @@ void __dead2 do_panic(void);
#endif
void print_string_value(char *s, unsigned long *mem);
+void tf_printf(const char *fmt, ...);
+
#endif /* __DEBUG_H__ */