From: Andreas Schneider Date: Mon, 26 Jan 2015 21:49:49 +0000 (+0100) Subject: macloader: Fix log output and return value. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31962d8084a99508178f0dc30bd41b8927faeb3e;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git macloader: Fix log output and return value. Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16 Signed-off-by: Andreas Schneider --- 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 */