The shutdown mode checker in the Node Startup Controller now uses the
same logging message as the legacy app handler helper binary.
The shutdown mode checker in the helper binary now uses the condition
statement from the Node Startup Controller
}
/* validate the shutdown mode */
- if (shutdown_mode == NSM_SHUTDOWN_TYPE_NOT
- || ((shutdown_mode & NSM_SHUTDOWN_TYPE_NORMAL) == 0
- && (shutdown_mode & NSM_SHUTDOWN_TYPE_FAST) == 0))
+ if (shutdown_mode != NSM_SHUTDOWN_TYPE_NORMAL
+ && shutdown_mode != NSM_SHUTDOWN_TYPE_FAST
+ && shutdown_mode != NSM_SHUTDOWN_TYPE_NORMAL | NSM_SHUTDOWN_TYPE_FAST)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to register legacy application: "
{
/* the shutdown mode is invalid */
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Register called with invalid shutdown mode"));
+ DLT_STRING ("Failed to register legacy application: "
+ "invalid shutdown mode"), DLT_INT (shutdown_mode));
la_handler_complete_register (interface, invocation);
return TRUE;
}