aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2010-06-24 17:16:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-06-24 17:16:49 -0700
commit9e6513f1450eb060862eb3bd7111176abee4ca6c (patch)
tree135e2194ef720bdb16e838a26eacedc4d0e9318a /common.h
parentb3d9a15b66c5235c7c6cda3232b7b30da08c3780 (diff)
parent21b97ed5693d039e8b9dea57a160d3307f412682 (diff)
downloadbootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.zip
bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.gz
bootable_recovery-9e6513f1450eb060862eb3bd7111176abee4ca6c.tar.bz2
am 21b97ed5: Add __attribute__((format(printf, a, b))) to printf like functions.
Merge commit '21b97ed5693d039e8b9dea57a160d3307f412682' * commit '21b97ed5693d039e8b9dea57a160d3307f412682': Add __attribute__((format(printf, a, b))) to printf like functions.
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index e5409c2..a428dab 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()