diff options
author | Elliott Hughes <enh@google.com> | 2018-10-19 13:59:44 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-10-19 14:04:24 -0700 |
commit | e64126b0e3735f94c08f1802f0ef483b17b2e37d (patch) | |
tree | a90ac1906d678934278fe88afd10902fd943d927 /adb.h | |
parent | 2b8b5059abd1ffacf7520e952b806bf667c73b21 (diff) | |
download | adb-e64126b0e3735f94c08f1802f0ef483b17b2e37d.tar.gz |
adb: rationalize fatal/error logging.
Let's use LOG(FATAL)/PLOG(FATAL) for actual fatal stuff.
Add a Windows error(3) and move folks who didn't really mean "abort"
fatal over to it. Also get rid of syntax_error which wasn't adding a
lot of value, and most of the places it was adding "usage: " didn't seem
entirely appropriate anyway.
In particular, we seemed to have confused fastdeploy.cpp into aborting
in most user error cases, and none of the reviewers noticed. Clearly
we'd all lost track of far too many options.
(I've also cleaned up a few random instances of fprintf(3) + exit(2).)
Bug: N/A
Test: manual
Change-Id: I3e8440848a24e30d928de9eded505916bc324786
Diffstat (limited to 'adb.h')
-rw-r--r-- | adb.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -124,9 +124,6 @@ inline bool ConnectionStateIsOnline(ConnectionState state) { void print_packet(const char* label, apacket* p); -void fatal(const char* fmt, ...) __attribute__((noreturn, format(__printf__, 1, 2))); -void fatal_errno(const char* fmt, ...) __attribute__((noreturn, format(__printf__, 1, 2))); - void handle_packet(apacket* p, atransport* t); int launch_server(const std::string& socket_spec); |