summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-11 21:28:06 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-12 21:14:38 +0200
commit32c8eb81af916f04fd42e7294f699b10474beef6 (patch)
treed845c9e6435c0b6f6b1e6bc490315600b20e72eb /common.h
parentClean up extra-functions (diff)
downloadandroid_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.gz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.bz2
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.lz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.xz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.zst
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common.h b/common.h
index 4122e4066..37c0e4cff 100644
--- a/common.h
+++ b/common.h
@@ -23,11 +23,12 @@
extern "C" {
#endif
-#define ui_print(...) fprintf(stdout, __VA_ARGS__)
-#define ui_print_overwrite(...) fprintf(stdout, __VA_ARGS__)
+#define ui_print(...) gui_print(__VA_ARGS__)
+#define ui_print_overwrite(...) gui_print_overwrite(__VA_ARGS__)
+#include "gui/gui.h"
// TODO: restore ui_print for LOGE
-#define LOGE(...) fprintf(stdout, "E:" __VA_ARGS__)
+#define LOGE(...) gui_print("E:" __VA_ARGS__)
#define LOGW(...) fprintf(stdout, "W:" __VA_ARGS__)
#define LOGI(...) fprintf(stdout, "I:" __VA_ARGS__)