libs: Add smohook for getting cmdline opts
This commit is contained in:
@@ -329,7 +329,7 @@ void IoUringAssemblyEngine::stop(bool doAcquireLock)
|
||||
}
|
||||
}
|
||||
|
||||
if (!sawCancelCqe && OptionParser::getOptions().verbose) {
|
||||
if (!sawCancelCqe && smoHooksPtr->OptionParser_getOptions().verbose) {
|
||||
std::cerr << __func__ << ": no CQE seen for cancel operation\n";
|
||||
}
|
||||
}
|
||||
@@ -483,7 +483,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (OptionParser::getOptions().verbose)
|
||||
if (smoHooksPtr->OptionParser_getOptions().verbose)
|
||||
{
|
||||
std::cerr << __func__ << ": Invalid state: nSucceeded ("
|
||||
<< context->loop.nSucceeded.load()
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
// Stash device pointer until after getReturnMode succeeds
|
||||
context->deviceTmp = dev;
|
||||
|
||||
if (1 || OptionParser::getOptions().verbose)
|
||||
if (1 || smoHooksPtr->OptionParser_getOptions().verbose)
|
||||
{
|
||||
std::cout << __func__ << ": Successfully attached/found Livox "
|
||||
"device: " << context->spec->deviceSelector << " (ID: "
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
|
||||
pcloudStimBuff->start();
|
||||
|
||||
if (1 || OptionParser::getOptions().verbose)
|
||||
if (1 || smoHooksPtr->OptionParser_getOptions().verbose)
|
||||
{
|
||||
std::cout << __func__ << ": Got return mode (" << (int)mode
|
||||
<< ") for device: " << context->spec->deviceSelector
|
||||
@@ -264,7 +264,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (1 || OptionParser::getOptions().verbose)
|
||||
if (1 || smoHooksPtr->OptionParser_getOptions().verbose)
|
||||
{
|
||||
std::cout << __func__ << ": Enabled pcloud data for device: "
|
||||
<< context->spec->deviceSelector << std::endl;
|
||||
@@ -372,7 +372,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (1 || OptionParser::getOptions().verbose)
|
||||
if (1 || smoHooksPtr->OptionParser_getOptions().verbose)
|
||||
{
|
||||
std::cout << __func__ << ": Successfully detached pcloud stimbuff "
|
||||
"for device " << context->spec->deviceSelector
|
||||
|
||||
Reference in New Issue
Block a user