summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-04-04 01:16:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-04-04 01:16:11 +0000
commitd2d8b68f70c35355d17a1ffd9079723f9cce5717 (patch)
tree86aba03422d9f6770006b2f75b1ae47d06d7650a /fastboot
parentca8954f7b82dd2c989a42aeb8ef20b358f096da2 (diff)
parent1fd46dfa7266337324ca4429676a278a904192ba (diff)
downloadcore-d2d8b68f70c35355d17a1ffd9079723f9cce5717.tar.gz
core-d2d8b68f70c35355d17a1ffd9079723f9cce5717.tar.bz2
core-d2d8b68f70c35355d17a1ffd9079723f9cce5717.zip
Merge "Show install path in "adb --version" and "fastboot --version"."
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 7dfb44549..704dc43bf 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1539,6 +1539,7 @@ int main(int argc, char **argv)
setvbuf(stderr, nullptr, _IONBF, 0);
} else if (strcmp("version", longopts[longindex].name) == 0) {
fprintf(stdout, "fastboot version %s\n", FASTBOOT_REVISION);
+ fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str());
return 0;
} else if (strcmp("slot", longopts[longindex].name) == 0) {
slot_override = std::string(optarg);