summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaichi Hirono2017-06-08 23:12:21 -0500
committerDaichi Hirono2017-06-11 20:37:08 -0500
commite5a1556d402789dc02aa041c8d04d0b23a0ce68e (patch)
treeaaee25a43666860c95eba19a4442516f9b682002 /libappfuse/FuseBuffer.cc
parent435baf5d00162b6f14ada5f243ae49c62714d03f (diff)
downloadplatform-system-core-e5a1556d402789dc02aa041c8d04d0b23a0ce68e.tar.gz
platform-system-core-e5a1556d402789dc02aa041c8d04d0b23a0ce68e.tar.xz
platform-system-core-e5a1556d402789dc02aa041c8d04d0b23a0ce68e.zip
Add more logs for writing failures.
Bug: 62429763 Test: libappfuse_test Change-Id: Ie0eabd09ae9ad3f8ba8c4f38f871dad16b5c58ff
Diffstat (limited to 'libappfuse/FuseBuffer.cc')
-rw-r--r--libappfuse/FuseBuffer.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libappfuse/FuseBuffer.cc b/libappfuse/FuseBuffer.cc
index 653e96b28..1b47e0a35 100644
--- a/libappfuse/FuseBuffer.cc
+++ b/libappfuse/FuseBuffer.cc
@@ -115,7 +115,10 @@ ResultOrAgain WriteInternal(const FuseMessage<T>* self, int fd, int sockflag, co
115 case EAGAIN: 115 case EAGAIN:
116 return ResultOrAgain::kAgain; 116 return ResultOrAgain::kAgain;
117 default: 117 default:
118 PLOG(ERROR) << "Failed to write a FUSE message"; 118 PLOG(ERROR) << "Failed to write a FUSE message: "
119 << "fd=" << fd << " "
120 << "sockflag=" << sockflag << " "
121 << "data=" << data;
119 return ResultOrAgain::kFailure; 122 return ResultOrAgain::kFailure;
120 } 123 }
121 } 124 }