macloader: Fix log output and return value.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 26 Jan 2015 21:49:49 +0000 (22:49 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 27 Jan 2015 08:06:18 +0000 (09:06 +0100)
Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
macloader/macloader.c

index 7f65fef8f668676a0f5a7433566478a66382df59..7e1a10cbadfd36b06b2cff652bf777de5768938d 100644 (file)
@@ -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 */