This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/9643 )
Change subject: bsc-sccplite: Add -V param to print version
......................................................................
bsc-sccplite: Add -V param to print version
Change-Id: Iad663d36d70196408806de664a39863f4d12238b
---
M openbsc/src/osmo-bsc/osmo_bsc_main.c
1 file changed, 7 insertions(+), 1 deletion(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c
index 022cd3d..be24cbd 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_main.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c
@@ -81,6 +81,7 @@
printf(" -d option --debug=DRLL:DCC:DMM:DRR:DRSL:DNM enable debugging\n");
printf(" -s --disable-color\n");
printf(" -T --timestamp. Print a timestamp in the debug output.\n");
+ printf(" -V --version. Print the version of OsmoBSC.\n");
printf(" -c --config-file filename The config file to use.\n");
printf(" -l --local=IP. The local address of the MGCP.\n");
printf(" -e --log-level number. Set a global loglevel.\n");
@@ -99,6 +100,7 @@
{"config-file", 1, 0, 'c'},
{"disable-color", 0, 0, 's'},
{"timestamp", 0, 0, 'T'},
+ {"version", 0, 0, 'V' },
{"local", 1, 0, 'l'},
{"log-level", 1, 0, 'e'},
{"rf-ctl", 1, 0, 'r'},
@@ -106,7 +108,7 @@
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "hd:DsTc:e:r:t",
+ c = getopt_long(argc, argv, "hd:DsTVc:e:r:t",
long_options, &option_index);
if (c == -1)
break;
@@ -131,6 +133,10 @@
case 'T':
log_set_print_timestamp(osmo_stderr_target, 1);
break;
+ case 'V':
+ print_version(1);
+ exit(0);
+ break;
case 'e':
log_set_log_level(osmo_stderr_target, atoi(optarg));
break;
--
To view, visit https://gerrit.osmocom.org/9643
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iad663d36d70196408806de664a39863f4d12238b
Gerrit-Change-Number: 9643
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180618/8ba0fde0/attachment.htm>