summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-08-11 16:45:32 -0700
committerSpencer Low <CompareAndSwap@gmail.com>2015-08-11 16:45:32 -0700
commitbf7c605d87f87c03066c384cecb0f0c91aa31403 (patch)
tree46721e515433a166545f4862fee1a892a36eba68 /trusty/coverage/coverage_test.cpp
parent7989a7c8d32e90dc2cba952dc59da6b88cf55c8e (diff)
adb: improve network error info
- handle_forward_request - Because we have detailed info about which syscall failed (at least on Win32), use a more generic prefix of "cannot bind listener" followed by the detailed info. - install_listener - Return string errors for a few errors even though I don't think any callers actually output the string for those errors. - Remove the printf since the callers print the message themselves. - adb_main - LOG(FATAL) calls abort() which on Windows calls the Windows Error Reporting service which pops up a dialog asking if you want a crashdump to be uploaded to Microsoft. So really, abort() is designed for app bugs. Windows isn't the only one doing this, Chromium also makes LOG(FATAL) crashdump-ready. Since an error here is not necessarily an app-bug, use a 'normal' error output API like fatal() which prints an error and just uses exit(). - sysdeps_win32.cpp - When Winsock APIs fail, make the string clarify which API failed. Use terse unix-style descriptions (like what you'd get from cp/mv/dd/etc.). - Don't trace WSAEWOULDBLOCK from recv() which is a normal occurrence. - Add a comment about WSAEWOULDBLOCK => EAGAIN. Change-Id: I58e47f49fa2f6c1b4b92a36d0c4bfe369b456f2a Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions