From 338942b1883b439c285c5672a414c2b47d61f5ff Mon Sep 17 00:00:00 2001 From: Basil Gello Date: Thu, 13 Jul 2017 19:36:39 +0300 Subject: [PATCH] secril-client: return exact error code from blockingWrite() Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb --- ril/libsecril-client/secril-client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ril/libsecril-client/secril-client.cpp b/ril/libsecril-client/secril-client.cpp index 3277b1d..d96f19b 100755 --- a/ril/libsecril-client/secril-client.cpp +++ b/ril/libsecril-client/secril-client.cpp @@ -1572,9 +1572,8 @@ static int blockingWrite(int fd, const void *buffer, size_t len) { } else { RLOGE ("RIL Response: unexpected error on write errno:%d", errno); - printf("RIL Response: unexpected error on write errno:%d\n", errno); close(fd); - return -1; + return -errno; } } -- 2.20.1