Merge "fastboot: don't print anything in Status() if the input is empty" am: 18b5965e20
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1329334 Change-Id: I819195167522bdcff7516db033ffeacb7c561200
This commit is contained in:
commit
3a4b1429a9
|
@ -200,8 +200,10 @@ static std::string find_item(const std::string& item) {
|
|||
double last_start_time;
|
||||
|
||||
static void Status(const std::string& message) {
|
||||
static constexpr char kStatusFormat[] = "%-50s ";
|
||||
fprintf(stderr, kStatusFormat, message.c_str());
|
||||
if (!message.empty()) {
|
||||
static constexpr char kStatusFormat[] = "%-50s ";
|
||||
fprintf(stderr, kStatusFormat, message.c_str());
|
||||
}
|
||||
last_start_time = now();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue