diff options
author | Nick Kralevich <nnk@google.com> | 2010-06-25 02:16:49 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-25 02:16:49 +0200 |
commit | 9e6513f1450eb060862eb3bd7111176abee4ca6c (patch) | |
tree | 135e2194ef720bdb16e838a26eacedc4d0e9318a | |
parent | am dd6a0412: recovery: Add ueventd service (diff) | |
parent | Add __attribute__((format(printf, a, b))) to printf like functions. (diff) | |
download | android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.gz android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.bz2 android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.lz android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.xz android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.zst android_bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.zip |
-rw-r--r-- | common.h | 2 | ||||
-rw-r--r-- | install.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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() @@ -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"); } |