From 71bbc6789fb6750d8fddda0a3ff9a87f09a32c74 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 14 Jul 2014 16:45:13 -0700 Subject: [PATCH] Fix the build in clang "fprintf(stderr, buf)" is a warning in some compilers, and we're building with all warnings promoted to error. Change-Id: Ie3c6ddcd74cf4dda40cf7b742df955dde1d1a5ff --- adb/commandline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adb/commandline.c b/adb/commandline.c index f8e9843b5..96ea8c62b 100644 --- a/adb/commandline.c +++ b/adb/commandline.c @@ -1994,7 +1994,7 @@ int install_multiple_app(transport_type transport, char* serial, int argc, char* } if (session_id < 0) { fprintf(stderr, "Failed to create session\n"); - fprintf(stderr, buf); + fputs(buf, stderr); return -1; } @@ -2034,7 +2034,7 @@ int install_multiple_app(transport_type transport, char* serial, int argc, char* if (strncmp("Success", buf, 7)) { fprintf(stderr, "Failed to write %s\n", file); - fprintf(stderr, buf); + fputs(buf, stderr); success = 0; goto finalize_session; } @@ -2057,11 +2057,11 @@ finalize_session: adb_close(fd); if (!strncmp("Success", buf, 7)) { - fprintf(stderr, buf); + fputs(buf, stderr); return 0; } else { fprintf(stderr, "Failed to finalize session\n"); - fprintf(stderr, buf); + fputs(buf, stderr); return -1; } }