macloader: Fix log output and return value.

Change-Id: Ic306ffd3bffc274406b9c11513a7ae2794578d16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2015-01-26 22:49:49 +01:00 committed by Ethan Chen
parent c7212d0365
commit ca1a0eea09

View file

@ -159,9 +159,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 */