summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2010-06-25 01:11:17 +0200
committerNick Kralevich <nnk@google.com>2010-06-25 01:11:17 +0200
commit21b97ed5693d039e8b9dea57a160d3307f412682 (patch)
tree7257b5526e7f4ae33c2dea69ad86c4688e13bdda
parentrecovery: Add ueventd service (diff)
downloadandroid_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar.gz
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar.bz2
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar.lz
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar.xz
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.tar.zst
android_bootable_recovery-21b97ed5693d039e8b9dea57a160d3307f412682.zip
-rw-r--r--common.h2
-rw-r--r--install.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index ff577c259..1182d77aa 100644
--- a/common.h
+++ b/common.h
@@ -31,7 +31,7 @@ void ui_clear_key_queue();
// Write a message to the on-screen log shown with Alt-L (also to stderr).
// The screen is small, and users may need to report these messages to support,
// so keep the output short and not too cryptic.
-void ui_print(const char *fmt, ...);
+void ui_print(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
// Display some header text followed by a menu of items, which appears
// at the top of the screen (in place of any scrolling ui_print()
diff --git a/install.c b/install.c
index 37a4f0770..35ba6ca70 100644
--- a/install.c
+++ b/install.c
@@ -136,7 +136,7 @@ try_update_binary(const char *path, ZipArchive *zip) {
} else if (strcmp(command, "ui_print") == 0) {
char* str = strtok(NULL, "\n");
if (str) {
- ui_print(str);
+ ui_print("%s", str);
} else {
ui_print("\n");
}