From 1eb9003b773d7957448efab3dc1f977e55a45fb7 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 3 Jun 2015 09:49:02 -0700 Subject: Fix build: fprintf without modifier Change-Id: I66ae21a25a25fa3c70837bc54a7d406182d4cf37 --- updater/install.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/updater/install.c b/updater/install.c index da6b57782..4a0e064c3 100644 --- a/updater/install.c +++ b/updater/install.c @@ -65,8 +65,7 @@ void uiPrint(State* state, char* buffer) { // The recovery will only print the contents to screen for pipe command // ui_print. We need to dump the contents to stderr (which has been // redirected to the log file) directly. - fprintf(stderr, buffer); - fprintf(stderr, "\n"); + fprintf(stderr, "%s", buffer); } __attribute__((__format__(printf, 2, 3))) __nonnull((2)) -- cgit v1.2.3