summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gao2018-07-31 17:36:03 -0500
committerJosh Gao2018-07-31 17:57:52 -0500
commit258d4a91c962b182a6119a69b631269ee7ffba58 (patch)
tree0f7e0eddc8b8eff5ef3f174f5547c1ce3c831db9
parente445a6d8a23d456c0720c92bc7b31ce033bfc345 (diff)
downloadplatform-system-core-258d4a91c962b182a6119a69b631269ee7ffba58.tar.gz
platform-system-core-258d4a91c962b182a6119a69b631269ee7ffba58.tar.xz
platform-system-core-258d4a91c962b182a6119a69b631269ee7ffba58.zip
adb: fix error message for `adb {forward,reverse}`
Test: `adb reverse` Change-Id: I6fa078ea7a0e019df5c6309df99ffdf2a3219194
-rw-r--r--adb/client/commandline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/client/commandline.cpp b/adb/client/commandline.cpp
index a7a94e775..3fb14f351 100644
--- a/adb/client/commandline.cpp
+++ b/adb/client/commandline.cpp
@@ -1614,9 +1614,9 @@ int adb_commandline(int argc, const char** argv) {
1614 return bugreport.DoIt(argc, argv); 1614 return bugreport.DoIt(argc, argv);
1615 } else if (!strcmp(argv[0], "forward") || !strcmp(argv[0], "reverse")) { 1615 } else if (!strcmp(argv[0], "forward") || !strcmp(argv[0], "reverse")) {
1616 bool reverse = !strcmp(argv[0], "reverse"); 1616 bool reverse = !strcmp(argv[0], "reverse");
1617 ++argv;
1618 --argc; 1617 --argc;
1619 if (argc < 1) return syntax_error("%s requires an argument", argv[0]); 1618 if (argc < 1) return syntax_error("%s requires an argument", argv[0]);
1619 ++argv;
1620 1620
1621 // Determine the <host-prefix> for this command. 1621 // Determine the <host-prefix> for this command.
1622 std::string host_prefix; 1622 std::string host_prefix;