aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-19 13:59:44 -0700
committerElliott Hughes <enh@google.com>2018-10-19 14:04:24 -0700
commite64126b0e3735f94c08f1802f0ef483b17b2e37d (patch)
treea90ac1906d678934278fe88afd10902fd943d927 /adb.h
parent2b8b5059abd1ffacf7520e952b806bf667c73b21 (diff)
downloadadb-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.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/adb.h b/adb.h
index f434e2d1..e2911e81 100644
--- a/adb.h
+++ b/adb.h
@@ -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);