diff options
author | Elliott Hughes <enh@google.com> | 2017-05-08 11:30:34 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-05-09 08:21:54 -0700 |
commit | 4d4f64ff94e8c03d0c2e7b7ccfa7c48ca2345087 (patch) | |
tree | 38585ad0025cc44b0eb63f527c4007795a5e0380 /fastboot/fastboot.cpp | |
parent | ee9e5d098191cf1fa0932db7498963de3d6dcf1b (diff) |
Show the "platform tools" version in adb/fastboot --version.
Annoyingly folks parse the "adb --version" output so we have the
less-interesting protocol version first. But at least now we'll
have the "real" version somewhere...
Bug: N/A
Test: "adb --version"/"fastboot --version"
Change-Id: Ia85b561bd8d84c6fd6995923730d36f53b2f800b
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 5d5ac9b80..a9450dcc3 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1555,7 +1555,7 @@ int main(int argc, char **argv) setvbuf(stdout, nullptr, _IONBF, 0); setvbuf(stderr, nullptr, _IONBF, 0); } else if (strcmp("version", longopts[longindex].name) == 0) { - fprintf(stdout, "fastboot version %s\n", FASTBOOT_REVISION); + fprintf(stdout, "fastboot version %s\n", FASTBOOT_VERSION); fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str()); return 0; } else if (strcmp("slot", longopts[longindex].name) == 0) { |