From 29dfe9860121fca52174ec74bad160e17a5b0aeb Mon Sep 17 00:00:00 2001 From: Ryan Lattrel Date: Mon, 12 Aug 2019 11:24:51 -0500 Subject: [PATCH] mmi_annotate: Fix clang compile issues Fix missing includes and warnings that show up when building with the clang compiler. Change-Id: I3eadc724df1598c4c2efe0ca1e18d6a6b7013367 Signed-off-by: Ryan Lattrel Reviewed-on: https://gerrit.mot.com/1401055 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Curtis Porter Tested-by: Jira Key Reviewed-by: Konstantin Makariev Submit-Approved: Jira Key --- drivers/mmi_annotate/mmi_annotate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmi_annotate/mmi_annotate.c b/drivers/mmi_annotate/mmi_annotate.c index fc46dbe0a0f1..ec11f261bd0e 100644 --- a/drivers/mmi_annotate/mmi_annotate.c +++ b/drivers/mmi_annotate/mmi_annotate.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include #define MAX_USER_STR 1024 #define DEFAULT_MEM_SIZE 4096 @@ -60,7 +62,7 @@ static int mmi_annotate_seq_show(struct seq_file *f, void *ptr) { mutex_lock(&mem_lock); if (mem_data.contents && mem_data.cur_off > 0) { - seq_printf(f, mem_data.contents); + seq_printf(f, "%s", mem_data.contents); } else { seq_printf(f, "No annotated data.\n"); }