From f43603fbd68ffbbff81bc8653aa547a8acc7cc46 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 da31975..29644fb 100644 --- a/updater/install.c +++ b/updater/install.c @@ -62,8 +62,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.1