Add a parameter to load_configmodule API to allow an exec to specify that it may be run with only command line options
This commit is contained in:
@@ -988,7 +988,7 @@ int main(int argc, char **argv)
|
||||
if (transmission_mode>1) pa=dBm3;
|
||||
printf("dlsim: tmode %d, pa %d\n",transmission_mode,pa);
|
||||
|
||||
AssertFatal(load_configmodule(argc,argv) != NULL,
|
||||
AssertFatal(load_configmodule(argc,argv, CONFIG_ENABLECMDLINEONLY) != NULL,
|
||||
"cannot load configuration module, exiting\n");
|
||||
logInit();
|
||||
set_glog_onlinelog(true);
|
||||
|
||||
@@ -429,7 +429,7 @@ int main(int argc, char **argv) {
|
||||
cpu_freq_GHz = (double)get_cpu_freq_GHz();
|
||||
cpuf = cpu_freq_GHz;
|
||||
printf("Detected cpu_freq %f GHz\n",cpu_freq_GHz);
|
||||
AssertFatal(load_configmodule(argc,argv) != NULL,
|
||||
AssertFatal(load_configmodule(argc,argv,CONFIG_ENABLECMDLINEONLY) != NULL,
|
||||
"cannot load configuration module, exiting\n");
|
||||
logInit();
|
||||
// enable these lines if you need debug info
|
||||
|
||||
Reference in New Issue
Block a user