aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-04-08 18:51:36 -0500
committerElliott Hughes2015-04-08 18:56:17 -0500
commit018ed31c515de2c840dedaebb078ab455bf37ae8 (patch)
tree1d6cd4cb955dc89e313a6b3f894a10af4d833504 /screen_ui.h
parent900c9a61dee1511c9f4086ea5a3a3632b944cc0e (diff)
downloadplatform-bootable-recovery-018ed31c515de2c840dedaebb078ab455bf37ae8.tar.gz
platform-bootable-recovery-018ed31c515de2c840dedaebb078ab455bf37ae8.tar.xz
platform-bootable-recovery-018ed31c515de2c840dedaebb078ab455bf37ae8.zip
Enable printf format argument checking.
The original attempt missed the fact that Print is a member function, so the first argument is the implicit 'this'. Change-Id: I963b668c5432804c767f0a2e3ef7dea5978a1218
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 210fd3e1..82647ac7 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -47,11 +47,11 @@ class ScreenRecoveryUI : public RecoveryUI {
47 bool WasTextEverVisible(); 47 bool WasTextEverVisible();
48 48
49 // printing messages 49 // printing messages
50 void Print(const char* fmt, ...); // __attribute__((format(printf, 1, 2))); 50 void Print(const char* fmt, ...) __printflike(2, 3);
51 51
52 // menu display 52 // menu display
53 void StartMenu(const char* const * headers, const char* const * items, 53 void StartMenu(const char* const * headers, const char* const * items,
54 int initial_selection); 54 int initial_selection);
55 int SelectMenu(int sel); 55 int SelectMenu(int sel);
56 void EndMenu(); 56 void EndMenu();
57 57