secril-client: return exact error code from blockingWrite()

Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb
tirimbino
Basil Gello 7 years ago committed by Christopher N. Hesse
parent 1146f1a616
commit 338942b188
  1. 3
      ril/libsecril-client/secril-client.cpp

@ -1572,9 +1572,8 @@ static int blockingWrite(int fd, const void *buffer, size_t len) {
} }
else { else {
RLOGE ("RIL Response: unexpected error on write errno:%d", errno); RLOGE ("RIL Response: unexpected error on write errno:%d", errno);
printf("RIL Response: unexpected error on write errno:%d\n", errno);
close(fd); close(fd);
return -1; return -errno;
} }
} }

Loading…
Cancel
Save