diff options
author | Elliott Hughes <enh@google.com> | 2018-03-29 14:46:29 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-04-02 11:01:48 -0700 |
commit | f238d8751b9960362ae0cf7e5476ab510461db9d (patch) | |
tree | d91ea7f622213a52ce0fdbb3e325fbaaf1bba122 /fastboot/util.cpp | |
parent | 539f3ddff5ffb124fa75d4557647092d601d9d69 (diff) | |
download | system_core-f238d8751b9960362ae0cf7e5476ab510461db9d.tar.gz system_core-f238d8751b9960362ae0cf7e5476ab510461db9d.tar.bz2 system_core-f238d8751b9960362ae0cf7e5476ab510461db9d.zip |
Modernize fastboot output format.
After:
--------------------------------------------
Bootloader Version...: 0.5
Baseband Version.....: 0.5
Serial Number........: serialv1.0
--------------------------------------------
Checking product OKAY [ 0.032s]
Sending 'boot' (9962 KB) OKAY [ 0.350s]
Writing 'boot' OKAY [ 0.143s]
Sending 'dts' (14 KB) OKAY [ 0.068s]
Writing 'dts' OKAY [ 0.048s]
Sending sparse 'system' 1/2 (460796 KB) OKAY [ 14.383s]
Writing sparse 'system' 1/2 OKAY [ 4.138s]
Sending sparse 'system' 2/2 (443712 KB) OKAY [ 13.871s]
Writing sparse 'system' 2/2 OKAY [ 3.246s]
Rebooting
Finished. Total time: 36.962s
For a failure:
extracting android-info.txt (0 MB) to RAM...
--------------------------------------------
Bootloader Version...: 0.5
Baseband Version.....: 0.5
Serial Number........: serialv1.0
--------------------------------------------
Checking product FAILED
Device product is 'hikey960'.
Update requires 'marlin' or 'sailfish'.
fastboot: error: requirements not met!
This change also adds a -v/--verbose flag, but doesn't make much use of
it yet (http://b/30953083 will need it).
Bug: N/A
Test: manual
Change-Id: I7d19f5775859ffad5f3be5707b37dcb6e180917f
Diffstat (limited to 'fastboot/util.cpp')
-rw-r--r-- | fastboot/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/util.cpp b/fastboot/util.cpp index fb085e757..53fc1be29 100644 --- a/fastboot/util.cpp +++ b/fastboot/util.cpp @@ -44,7 +44,7 @@ double now() { void die(const char* fmt, ...) { va_list ap; va_start(ap, fmt); - fprintf(stderr,"error: "); + fprintf(stderr, "fastboot: error: "); vfprintf(stderr, fmt, ap); fprintf(stderr,"\n"); va_end(ap); |