From 31962d8084a99508178f0dc30bd41b8927faeb3e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 26 Jan 2015 22:49:49 +0100 Subject: [PATCH] macloader: Fix log output and return value. Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16 Signed-off-by: Andreas Schneider --- macloader/macloader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macloader/macloader.c b/macloader/macloader.c index 7f65fef..7e1a10c 100644 --- a/macloader/macloader.c +++ b/macloader/macloader.c @@ -144,9 +144,8 @@ int main() { ret = fputs(type_str, cidfile); if (ret != 0) { - fprintf(stderr, "fputs() to file %s failed\n", CID_PATH); ALOGE("Can't write to %s\n", CID_PATH); - return -1; + return 1; } /* Change permissions of cid file */ -- 2.20.1