summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2013-05-14 20:03:02 +0200
committerDoug Zongker <dougz@android.com>2013-05-16 19:47:02 +0200
commit596b342a0476629badb41b840494254a19c57dae (patch)
tree3aab0c59d51a4a5bef461a476f635ee51bbf3495 /common.h
parentMerge "verifier: update to support certificates using SHA-256" (diff)
downloadandroid_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar.gz
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar.bz2
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar.lz
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar.xz
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.tar.zst
android_bootable_recovery-596b342a0476629badb41b840494254a19c57dae.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.h b/common.h
index 3587a31f2..768f499f9 100644
--- a/common.h
+++ b/common.h
@@ -18,13 +18,13 @@
#define RECOVERY_COMMON_H
#include <stdio.h>
+#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
-// TODO: restore ui_print for LOGE
-#define LOGE(...) fprintf(stdout, "E:" __VA_ARGS__)
+#define LOGE(...) ui_print("E:" __VA_ARGS__)
#define LOGW(...) fprintf(stdout, "W:" __VA_ARGS__)
#define LOGI(...) fprintf(stdout, "I:" __VA_ARGS__)
@@ -44,6 +44,8 @@ typedef struct fstab_rec Volume;
// fopen a file, mounting volumes and making parent dirs as necessary.
FILE* fopen_path(const char *path, const char *mode);
+void ui_print(const char* format, ...);
+
#ifdef __cplusplus
}
#endif