projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0525207
)
folly: AsyncIOOp: improve logging message: add strerror
author
Lucian Grijincu
<lucian@fb.com>
Tue, 14 Jul 2015 17:31:26 +0000
(10:31 -0700)
committer
Sara Golemon
<sgolemon@fb.com>
Wed, 15 Jul 2015 20:25:10 +0000
(13:25 -0700)
Reviewed By: @philippv
Differential Revision:
D2240628
folly/experimental/io/AsyncIO.cpp
patch
|
blob
|
history
diff --git
a/folly/experimental/io/AsyncIO.cpp
b/folly/experimental/io/AsyncIO.cpp
index ce540e6230f1bf0296627c942f1559cacc907b29..491db24f055937b9a94f7782592b5cf165e1a1fa 100644
(file)
--- a/
folly/experimental/io/AsyncIO.cpp
+++ b/
folly/experimental/io/AsyncIO.cpp
@@
-368,7
+368,11
@@
std::ostream& operator<<(std::ostream& os, const AsyncIOOp& op) {
}
if (op.state_ == AsyncIOOp::State::COMPLETED) {
- os << "result=" << op.result_ << ", ";
+ os << "result=" << op.result_;
+ if (op.result_ < 0) {
+ os << " (" << errnoStr(-op.result_) << ')';
+ }
+ os << ", ";
}
return os << "}";