From: Aleksei Vereshchagin Date: Wed, 5 Sep 2018 16:29:13 +0000 (+0300) Subject: Remove appid option X-Git-Tag: accepted/tizen/5.0/unified/20181102.031931^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_5.0;p=sdk%2Ftools%2Fprofctl.git Remove appid option --- diff --git a/README.md b/README.md index 74be008..d214064 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ profctl [options...] [command [args]] ### Options -* `-a`, `--appid=ID` - Tizen Application ID * `-p, --pipe=NAME` name of pipe file * `-e, --exec=NAME` diff --git a/profctl.c b/profctl.c index 5b42925..74d7fdb 100644 --- a/profctl.c +++ b/profctl.c @@ -37,7 +37,6 @@ static int stat_period_usec = 500000; // 0.5 seconds static struct termios sterm; #endif /* TIZEN */ -static char *appid = NULL; static int app_pid = -1; static int cmd_pid = -1; static int cmd_idx = -1; @@ -74,7 +73,6 @@ int is_running(int pid) } static struct option long_options[] = { - {"appid", required_argument, 0, 'a'}, {"pipe", required_argument, 0, 'p'}, {"exec", required_argument, 0, 'e'}, {"error", required_argument, 0, 'o'}, @@ -213,7 +211,7 @@ static int process_option(int argc, char **argv) int option_index; int result = -1; - result = getopt_long(argc, argv, "-a:p:ve:o:it:wc:d:s:E::", + result = getopt_long(argc, argv, "-p:ve:o:it:wc:d:s:E::", long_options, &option_index); if (result == 1) { @@ -236,7 +234,6 @@ static int process_option(int argc, char **argv) } switch (result) { - case 'a': CheckValue(&appid, "appid"); break; case 'p': CheckValue(&pname, "pipe name"); break; case 'e': CheckValue(&ename, "exe name"); break; case 'o': CheckValue(&oname, "error name"); break; @@ -606,12 +603,6 @@ int main(int argc, char **argv) while (!process_option(argc, argv)); atexit(finish); -#if TIZEN - if (appid == NULL) { - log_error("Unknown app id"); - exit(1); - } -#endif /* TIZEN */ if (oname == NULL) { oname = "/tmp/profctl.log";