summaryrefslogtreecommitdiffstats
path: root/adb/commandline.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-05-05 17:46:50 -0700
committerDan Albert <danalbert@google.com>2015-05-06 09:11:16 -0700
commitc1cfbd304ad1f4f5f136a175ed687de41701235a (patch)
treea1bbaaae91c8409c1a5f3ac554decfdd6d52d1da /adb/commandline.cpp
parentb0481f48091d77f21492cc2f717308412091bc02 (diff)
downloadsystem_core-c1cfbd304ad1f4f5f136a175ed687de41701235a.zip
system_core-c1cfbd304ad1f4f5f136a175ed687de41701235a.tar.gz
system_core-c1cfbd304ad1f4f5f136a175ed687de41701235a.tar.bz2
Include the git sha in the adb version.
Also add --version to adbd to display the same thing. Change-Id: I47dfbad16c892c42ea938aedd085ba77492791ba (cherry picked from commit 1ba1d7c1ee644967ff4743b0d257290cbeca7a83)
Diffstat (limited to 'adb/commandline.cpp')
-rw-r--r--adb/commandline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/commandline.cpp b/adb/commandline.cpp
index aa31bfd..1d71975 100644
--- a/adb/commandline.cpp
+++ b/adb/commandline.cpp
@@ -66,8 +66,8 @@ static std::string product_file(const char *extra) {
}
static void version(FILE* out) {
- fprintf(out, "Android Debug Bridge version %d.%d.%d\n",
- ADB_VERSION_MAJOR, ADB_VERSION_MINOR, ADB_SERVER_VERSION);
+ fprintf(out, "Android Debug Bridge version %d.%d.%d %s\n", ADB_VERSION_MAJOR,
+ ADB_VERSION_MINOR, ADB_SERVER_VERSION, ADB_REVISION);
}
static void help() {