summaryrefslogtreecommitdiff
path: root/fastboot/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fastboot/util.cpp')
-rw-r--r--fastboot/util.cpp5
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");