diff options
author | Tom Cherry <tomcherry@google.com> | 2018-08-29 21:36:28 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2018-09-05 14:28:47 -0700 |
commit | 11f12099cc0722abd5002b455df21621f511023f (patch) | |
tree | 58b6b42722ce5fa632d877b383131c2a0592d0ca /fastboot/util.cpp | |
parent | 484f72abbfe390a2017182b101e16f7eb63a2271 (diff) | |
download | system_core-11f12099cc0722abd5002b455df21621f511023f.tar.gz system_core-11f12099cc0722abd5002b455df21621f511023f.tar.bz2 system_core-11f12099cc0722abd5002b455df21621f511023f.zip |
fastboot: remove command queue
There is little advantage and increasingly much disadvantage to
queueing up fastboot commands before executing them. This change
removes the queue in the most simple way possible to enable further
clean up.
Test: fastboot works
Change-Id: I9abab05df07ed167dbe6a42e1eb9eab8f8d4f157
Diffstat (limited to 'fastboot/util.cpp')
-rw-r--r-- | fastboot/util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fastboot/util.cpp b/fastboot/util.cpp index 8f6e52afb..125182d73 100644 --- a/fastboot/util.cpp +++ b/fastboot/util.cpp @@ -70,6 +70,11 @@ void verbose(const char* fmt, ...) { fprintf(stderr, "\n"); } +void Status(const std::string& message) { + static constexpr char kStatusFormat[] = "%-50s "; + fprintf(stderr, kStatusFormat, message.c_str()); +} + char* xstrdup(const char* s) { char* result = strdup(s); if (!result) die("out of memory"); |