diff options
author | Doug Zongker <dougz@android.com> | 2013-05-14 20:03:02 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2013-05-21 20:18:38 +0200 |
commit | 7c3ae45ef9306d2ff4b491e0488c8849bf15ce90 (patch) | |
tree | 1fe30d8091a86909ed9705ea6983a1b051a07620 /common.h | |
parent | Add liblog (diff) | |
download | android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar.gz android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar.bz2 android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar.lz android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar.xz android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.tar.zst android_bootable_recovery-7c3ae45ef9306d2ff4b491e0488c8849bf15ce90.zip |
Diffstat (limited to '')
-rw-r--r-- | common.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |