aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-05 13:47:42 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-05 13:47:42 +0200
commit7ab9b777c6fb3e350a66b3477c3e3e5bb9990980 (patch)
tree2b6d44e9a01a29c176e445ee2136bedbad5bd951
parent017300623b0ffad1d98cc47b0e7000c648511b1c (diff)
add command line option '-p' to specify DSP trace flags as hex mask
-rw-r--r--src/osmo-bts-sysmo/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c
index 0b4a27f..12d510b 100644
--- a/src/osmo-bts-sysmo/main.c
+++ b/src/osmo-bts-sysmo/main.c
@@ -49,6 +49,7 @@ static const char *bsc_host = NULL;
static const char *config_file = "osmo-bts.cfg";
extern const char *osmobts_copyright;
static int daemonize = 0;
+static unsigned int dsp_trace = 0;
int bts_model_init(struct gsm_bts *bts)
{
@@ -59,6 +60,7 @@ int bts_model_init(struct gsm_bts *bts)
LOGP(DL1C, LOGL_FATAL, "Cannot open L1 Interface\n");
return -EIO;
}
+ fl1h->dsp_trace_f = dsp_trace;
bts->c0->role_bts.l1h = fl1h;
bts->c0->nominal_power = 23;
@@ -119,10 +121,11 @@ static void handle_options(int argc, char **argv)
{ "version", 0, 0, 'V' },
{ "log-level", 1, 0, 'e' },
{ "bsc-host", 1, 0, 'B' },
+ { "dsp-trace", 1, 0, 'p' },
{ 0, 0, 0, 0 }
};
- c = getopt_long(argc, argv, "hd:Dc:sTVe:B:",
+ c = getopt_long(argc, argv, "hd:Dc:sTVe:B:p:",
long_options, &option_idx);
if (c == -1)
break;
@@ -157,6 +160,9 @@ static void handle_options(int argc, char **argv)
case 'B':
bsc_host = strdup(optarg);
break;
+ case 'p':
+ dsp_trace = strtoul(optarg, NULL, 16);
+ break;
default:
break;
}