{
/* parsing failed, exit with an error */
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to parse command line options: "),
+ DLT_STRING ("Failed to parse command line options:"),
DLT_STRING (error->message));
/* clean up */
if (unit == NULL || *unit == '\0')
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register legacy application: no unit specified"));
+ DLT_STRING ("Failed to register legacy application:"),
+ DLT_STRING ("no unit specified"));
/* free command line options */
g_free (unit);
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to register legacy application: "
- "invalid shutdown mode \"0x%x\""), DLT_INT (shutdown_mode));
+ "invalid shutdown mode"), DLT_INT (shutdown_mode));
/* free command line options */
g_free (unit);
if (timeout < 0)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register legacy application: "
- "shutdown timeout must be non-negative"));
+ DLT_STRING ("Failed to register legacy application:"),
+ DLT_STRING ("shutdown timeout must be non-negative"));
/* free command line options */
g_free (unit);
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register legacy application: "),
+ DLT_STRING ("Failed to register legacy application:"),
DLT_STRING (error->message));
/* clean up */
NULL, &error))
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register legacy application: "),
+ DLT_STRING ("Failed to register legacy application:"),
DLT_STRING (error->message));
/* clean up */
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to connect to the NSM consumer: "),
+ DLT_STRING ("Failed to connect to the NSM consumer:"),
DLT_STRING (error->message));
g_error_free (error);
}
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to export shutdown consumer on the bus: "),
+ DLT_STRING ("Failed to export shutdown consumer on the bus:"),
DLT_STRING (error->message));
g_error_free (error);
}
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register a shutdown consumer: "),
+ DLT_STRING ("Failed to register a shutdown consumer:"),
DLT_STRING (error->message));
g_error_free (error);
}
/* log that we are completing a lifecycle request */
DLT_LOG (la_handler_context, DLT_LOG_INFO,
- DLT_STRING ("Completing a lifecycle request: request id "),
- DLT_UINT (data->request_id));
+ DLT_STRING ("Completing a lifecycle request:"),
+ DLT_STRING ("request id"), DLT_UINT (data->request_id));
/* log an error if shutting down the consumer has failed */
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to shut down a shutdown consumer: "),
+ DLT_STRING ("Failed to shut down a shutdown consumer:"),
DLT_STRING (error->message));
/* send an error back to the NSM */
&error_status, NULL, &err))
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to notify NSM about completed lifecycle request: "),
- DLT_STRING ("request id "), DLT_UINT (data->request_id),
- DLT_STRING (": "), DLT_STRING (error->message));
+ DLT_STRING ("Failed to notify NSM about completed lifecycle request:"),
+ DLT_STRING ("request id"), DLT_UINT (data->request_id),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_error_free (err);
}
else if (error_status == NSM_ERROR_STATUS_OK)
{
DLT_LOG (la_handler_context, DLT_LOG_INFO,
DLT_STRING ("Successfully notified NSM about completed "
- "lifecycle request: "),
- DLT_STRING ("request id "), DLT_UINT (data->request_id));
+ "lifecycle request:"),
+ DLT_STRING ("request id"), DLT_UINT (data->request_id));
}
else
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to notify NSM about completed lifecycle request: "),
- DLT_STRING ("request id "), DLT_UINT (data->request_id),
- DLT_STRING (", error status "), DLT_INT (error_status));
+ DLT_STRING ("Failed to notify NSM about completed lifecycle request:"),
+ DLT_STRING ("request id"), DLT_UINT (data->request_id),
+ DLT_STRING ("error status"), DLT_INT (error_status));
}
la_handler_service_data_unref (data);
if (error != NULL)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to unregister shutdown client "),
- DLT_STRING (object_path), DLT_STRING (" for unit "), DLT_STRING (unit),
- DLT_STRING (": "), DLT_STRING (error->message));
+ DLT_STRING ("Failed to unregister shutdown client:"),
+ DLT_STRING ("object path"), DLT_STRING (object_path),
+ DLT_STRING ("unit"), DLT_STRING (unit),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_error_free (error);
}
else if (error_code != NSM_ERROR_STATUS_OK)
{
DLT_LOG (la_handler_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to unregister shutdown client "),
- DLT_STRING (object_path), DLT_STRING (" for unit "), DLT_STRING (unit),
- DLT_STRING (": error code "), DLT_INT (error_code));
+ DLT_STRING ("Failed to unregister shutdown client:"),
+ DLT_STRING ("object path"), DLT_STRING (object_path),
+ DLT_STRING ("unit"), DLT_STRING (unit),
+ DLT_STRING ("error code"), DLT_INT (error_code));
}
}
}
if (error != NULL)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to connect to the NSM lifecycle control: "),
+ DLT_STRING ("Failed to connect to the NSM lifecycle control:"),
DLT_STRING (error->message));
g_error_free (error);
}
group = g_array_index (starter->start_order, gint, 0);
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Starting LUC group: "), DLT_INT (group));
+ DLT_STRING ("Starting LUC group:"), DLT_INT (group));
/* look up the apps for the group */
apps = g_hash_table_lookup (starter->start_groups, GINT_TO_POINTER (group));
g_return_if_fail (IS_LUC_STARTER (starter));
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Starting LUC app: "), DLT_STRING (app));
+ DLT_STRING ("Starting LUC app:"), DLT_STRING (app));
/* create the new cancellable */
cancellable = g_cancellable_new ();
g_return_if_fail (starter->start_order->len > 0);
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Finished starting LUC app: "), DLT_STRING (unit));
+ DLT_STRING ("Finished starting LUC app:"), DLT_STRING (unit));
/* respond to errors */
if (error != NULL)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to start the LUC application \""),
- DLT_STRING (unit), DLT_STRING ("\": "), DLT_STRING (error->message));
+ DLT_STRING ("Failed to start LUC application:"),
+ DLT_STRING ("unit"), DLT_STRING (unit),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
}
/* get the current start group */
if (apps->len == 0)
{
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Finished starting LUC group: "), DLT_INT (group));
+ DLT_STRING ("Finished starting LUC group:"), DLT_INT (group));
/* remove the group from the groups and the order */
g_hash_table_remove (starter->start_groups, GINT_TO_POINTER (group));
&luc_required, res, &error))
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to check whether the LUC is required: "),
+ DLT_STRING ("Failed to check whether the LUC is required:"),
DLT_STRING (error->message));
g_clear_error (&error);
if (error != NULL)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to read the last user context: "),
+ DLT_STRING ("Failed to read the last user context:"),
DLT_STRING (error->message));
g_error_free (error);
return;
if (connection == NULL)
{
DLT_LOG (controller_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to connect to the system bus: "),
+ DLT_STRING ("Failed to connect to the system bus:"),
DLT_STRING (error->message));
/* clean up */
if (systemd_manager == NULL)
{
DLT_LOG (controller_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to connect to the systemd manager: "),
+ DLT_STRING ("Failed to connect to the systemd manager:"),
DLT_STRING (error->message));
/* clean up */
if (!systemd_manager_call_subscribe_sync (systemd_manager, NULL, &error))
{
DLT_LOG (controller_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to subscribe to the systemd manager: "),
+ DLT_STRING ("Failed to subscribe to the systemd manager:"),
DLT_STRING (error->message));
/* clean up */
if (!node_startup_controller_service_start_up (node_startup_controller, &error))
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to start the node startup controller service: "),
+ DLT_STRING ("Failed to start the node startup controller service:"),
DLT_STRING (error->message));
/* clean up */
if (!la_handler_service_start (la_handler_service, &error))
{
DLT_LOG (controller_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to start the legacy app handler service: "),
+ DLT_STRING ("Failed to start the legacy app handler service:"),
DLT_STRING (error->message));
/* clean up */
/* log information about the watchdog timeout using DLT */
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Updating the systemd watchdog timestamp every "),
- DLT_UINT (watchdog_sec), DLT_STRING (" seconds"));
+ DLT_STRING ("Updating the systemd watchdog timestamp every"),
+ DLT_UINT (watchdog_sec), DLT_STRING ("seconds"));
}
}
application->connection, object_path, &error))
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to export shutdown consumer on the bus: "),
+ DLT_STRING ("Failed to export shutdown consumer on the bus:"),
DLT_STRING (error->message));
g_clear_error (&error);
}
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to register the node startup controller "
- "as a shutdown consumer: "), DLT_STRING (error->message));
+ "as a shutdown consumer:"), DLT_STRING (error->message));
g_error_free (error);
}
else if (error_code == NSM_ERROR_STATUS_OK)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to register the node startup controller "
- "as a shutdown consumer: error status "),
- DLT_INT (error_code));
+ "as a shutdown consumer:"),
+ DLT_STRING ("error status"), DLT_INT (error_code));
}
}
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to unregister the node startup controller "
- "as a shutdown consumer: "), DLT_STRING (error->message));
+ "as a shutdown consumer:"), DLT_STRING (error->message));
g_error_free (error);
}
else if (error_code == NSM_ERROR_STATUS_OK)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
DLT_STRING ("Failed to unregister the node startup controller "
- "as a shutdown consumer: error status "),
- DLT_INT (error_code));
+ "as a shutdown consumer:"),
+ DLT_STRING ("error status"), DLT_INT (error_code));
}
/* quit the application */
if (!service->started_registration)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to finish the LUC registration: "
- "the registration sequence was not started properly"));
+ DLT_STRING ("Failed to finish the LUC registration:"),
+ DLT_STRING ("the registration sequence was not started properly"));
/* notify the caller that we have handled the method call */
g_dbus_method_invocation_return_value (invocation, NULL);
if (error != NULL)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to finish the LUC registration: "),
+ DLT_STRING ("Failed to finish the LUC registration:"),
DLT_STRING (error->message));
g_error_free (error);
}
if (!service->started_registration)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register apps with the LUC: "
- "the registration sequence was not started properly"));
+ DLT_STRING ("Failed to register apps with the LUC:"),
+ DLT_STRING ("the registration sequence was not started properly"));
/* notify the caller that we have handled the register request */
g_dbus_method_invocation_return_value (invocation, NULL);
/* log the new last user context */
debug_text = g_variant_print (service->current_user_context, TRUE);
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Updated LUC to: "), DLT_STRING (debug_text));
+ DLT_STRING ("Updated LUC to:"), DLT_STRING (debug_text));
g_free (debug_text);
/* release the current context */
if (error != NULL)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to connect to the NSM lifecycle control: "),
+ DLT_STRING ("Failed to connect to the NSM lifecycle control:"),
DLT_STRING (error->message));
g_error_free (error);
}
{
/* there was an error, log it */
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to get unit \""), DLT_STRING (data->unit_name),
- DLT_STRING ("\" from systemd: "), DLT_STRING (error->message));
+ DLT_STRING ("Failed to get a unit from systemd:"),
+ DLT_STRING ("unit"), DLT_STRING (data->unit_name),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_error_free (error);
/* release the get unit data */
else
{
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Creating D-Bus proxy for unit \""), DLT_STRING (object_path),
- DLT_STRING ("\""));
+ DLT_STRING ("Creating D-Bus proxy:"),
+ DLT_STRING ("object path"), DLT_STRING (object_path));
/* remember the object path */
data->object_path = object_path;
{
/* there was an error, log it */
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to create D-Bus proxy for unit \""),
- DLT_STRING (data->object_path), DLT_STRING ("\": "),
- DLT_STRING (error->message));
+ DLT_STRING ("Failed to create D-Bus proxy:"),
+ DLT_STRING ("object path"), DLT_STRING (data->object_path),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_error_free (error);
}
else
/* log the the active state has changed */
DLT_LOG (controller_context, DLT_LOG_INFO,
- DLT_STRING ("Active state of unit \""), DLT_STRING (data->unit_name),
- DLT_STRING ("\" changed to "), DLT_STRING (state));
+ DLT_STRING ("Active state of unit changed:"),
+ DLT_STRING ("unit"), DLT_STRING (data->unit_name),
+ DLT_STRING ("state"), DLT_STRING (state));
/* check if the new state is active */
if (g_strcmp0 (state, "active") == 0)
&error))
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to set the node state: "),
+ DLT_STRING ("Failed to set the node state:"),
DLT_STRING (error->message));
g_error_free (error);
}
else if (error_code != NSM_ERROR_STATUS_OK)
{
DLT_LOG (controller_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to set the node state: error code "),
- DLT_UINT (error_code));
+ DLT_STRING ("Failed to set the node state:"),
+ DLT_STRING ("error code"), DLT_UINT (error_code));
}
}
if (connection == NULL)
{
DLT_LOG (nsm_dummy_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to connect to D-Bus: "),
+ DLT_STRING ("Failed to connect to D-Bus:"),
DLT_STRING (error->message));
/* clean up */
if (!nsm_lifecycle_control_service_start (lifecycle_control_service, &error))
{
DLT_LOG (nsm_dummy_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to start the lifecycle control service: "),
+ DLT_STRING ("Failed to start the lifecycle control service:"),
DLT_STRING (error->message));
/* clean up */
if (!nsm_consumer_service_start (consumer_service, &error))
{
DLT_LOG (nsm_dummy_context, DLT_LOG_FATAL,
- DLT_STRING ("Failed to start the consumer service: "),
+ DLT_STRING ("Failed to start the consumer service:"),
DLT_STRING (error->message));
/* clean up */
/* log information about the re-registration */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Re-registered shutdown client: "),
- DLT_STRING ("bus name "), DLT_STRING (bus_name),
- DLT_STRING (", object path "), DLT_STRING (object_path),
- DLT_STRING (", new shutdown mode "),
+ DLT_STRING ("Re-registered shutdown client:"),
+ DLT_STRING ("bus name"), DLT_STRING (bus_name),
+ DLT_STRING ("object path"), DLT_STRING (object_path),
+ DLT_STRING ("new shutdown mode"),
DLT_UINT (shutdown_client_get_shutdown_mode (shutdown_client)),
- DLT_STRING (", new timeout "),
+ DLT_STRING ("new timeout"),
DLT_UINT (shutdown_client_get_timeout (shutdown_client)));
}
else
{
/* log the error */
DLT_LOG (nsm_dummy_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to register shutdown client "),
- DLT_STRING (object_path), DLT_STRING (": "),
- DLT_STRING (error->message));
+ DLT_STRING ("Failed to register shutdown client:"),
+ DLT_STRING ("object path"), DLT_STRING (object_path),
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_error_free (error);
/* report the error back to the caller */
/* log the registered shutdown client */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Shutdown client registered: "),
- DLT_STRING ("bus name "), DLT_STRING (bus_name),
- DLT_STRING (", object path "), DLT_STRING (object_path),
- DLT_STRING (", shutdown mode "), DLT_UINT (shutdown_mode),
- DLT_STRING (", timeout "), DLT_UINT (timeout));
+ DLT_STRING ("Shutdown client registered:"),
+ DLT_STRING ("bus name"), DLT_STRING (bus_name),
+ DLT_STRING ("object path"), DLT_STRING (object_path),
+ DLT_STRING ("shutdown mode"), DLT_UINT (shutdown_mode),
+ DLT_STRING ("timeout"), DLT_UINT (timeout));
/* release the consumer proxy; the client owns it now */
g_object_unref (consumer);
{
/* log the unregistration now */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Shutdown client unregistered: "),
- DLT_STRING ("bus name "), DLT_STRING (bus_name),
- DLT_STRING (", object path "), DLT_STRING (object_path));
+ DLT_STRING ("Shutdown client unregistered:"),
+ DLT_STRING ("bus name"), DLT_STRING (bus_name),
+ DLT_STRING ("object path"), DLT_STRING (object_path));
/* remove the client from the list of registered clients */
service->shutdown_clients = g_list_remove (service->shutdown_clients,
g_return_val_if_fail (NSM_CONSUMER_IS_SERVICE (service), FALSE);
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Finished shutting down client: "),
- DLT_STRING ("request id "), DLT_UINT (request_id),
- DLT_STRING (", status "), DLT_UINT (status));
+ DLT_STRING ("Finished shutting down client:"),
+ DLT_STRING ("request id"), DLT_UINT (request_id),
+ DLT_STRING ("status"), DLT_UINT (status));
nsm_consumer_complete_lifecycle_request_complete (object, invocation,
NSM_ERROR_STATUS_OK);
{
/* no we haven't; log this as a warning */
DLT_LOG (nsm_dummy_context, DLT_LOG_WARN,
- DLT_STRING ("Waiting for lifecycle request "),
+ DLT_STRING ("Waiting for lifecycle request"),
DLT_UINT (service->shutdown_queue->timeout_request),
- DLT_STRING (" to be completed but received completion of "),
+ DLT_STRING ("to be completed but received completion of"),
DLT_UINT (request_id),
DLT_STRING ("instead "));
}
/* the timeout is no longer active, we might have missed
* the time window; log this now */
DLT_LOG (nsm_dummy_context, DLT_LOG_WARN,
- DLT_STRING ("Lifecycle request "), DLT_UINT (request_id),
- DLT_STRING (" completed too late"));
+ DLT_STRING ("Lifecycle request"), DLT_UINT (request_id),
+ DLT_STRING ("completed too late"));
}
}
& service->shutdown_queue->current_mode) != 0)
{
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Shutting down a client: "),
- DLT_STRING ("bus name "),
+ DLT_STRING ("Shutting down a client:"),
+ DLT_STRING ("bus name"),
DLT_STRING (shutdown_client_get_bus_name (client)),
- DLT_STRING (", object path "),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (", shutdown mode "),
+ DLT_STRING ("shutdown mode"),
DLT_UINT (shutdown_client_get_shutdown_mode (client)),
- DLT_STRING (", timeout "),
+ DLT_STRING ("timeout"),
DLT_UINT (shutdown_client_get_timeout (client)),
- DLT_STRING (", request id "),
+ DLT_STRING ("request id"),
DLT_UINT (GPOINTER_TO_UINT (client)));
/* get the consumer associated with the shutdown client */
else
{
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Skipping client "),
+ DLT_STRING ("Skipping client"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (": it is not registered for shutdown mode "),
+ DLT_STRING ("as it is not registered for shutdown mode"),
DLT_UINT (service->shutdown_queue->current_mode));
/* it isn't, so remove it from the queue */
{
/* log the error */
DLT_LOG (nsm_dummy_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed to shut down client "),
+ DLT_STRING ("Failed to shut down a client:"),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (": "), DLT_STRING (error->message));
+ DLT_STRING ("error message"), DLT_STRING (error->message));
g_clear_error (&error);
/* remove the client it from the shutdown queue */
{
/* log the successful shutdown */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Successfully shut down client: "),
- DLT_STRING ("bus name "),
+ DLT_STRING ("Successfully shut down a client:"),
+ DLT_STRING ("bus name"),
DLT_STRING (shutdown_client_get_bus_name (client)),
- DLT_STRING (", object path "),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (", shutdown mode "),
+ DLT_STRING ("shutdown mode"),
DLT_UINT (service->shutdown_queue->current_mode));
/* remove the client it from the shutdown queue */
{
/* log that we are waiting for the client to finish its shutdown */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Waiting for client to shut down: "),
- DLT_STRING ("request id "),
+ DLT_STRING ("Waiting for client to shut down:"),
+ DLT_STRING ("request id"),
DLT_UINT (GPOINTER_TO_UINT (client)),
- DLT_STRING (", bus name "),
+ DLT_STRING ("bus name"),
DLT_STRING (shutdown_client_get_bus_name (client)),
- DLT_STRING (", object path "),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (", shutdown mode "),
+ DLT_STRING ("shutdown mode"),
DLT_UINT (service->shutdown_queue->current_mode));
/* start a timeout to wait for LifecycleComplete to be called by the
{
/* log that shutting down this client failed */
DLT_LOG (nsm_dummy_context, DLT_LOG_ERROR,
- DLT_STRING ("Failed shutting down a client: "),
- DLT_STRING ("request id "),
+ DLT_STRING ("Failed shutting down a client:"),
+ DLT_STRING ("request id"),
DLT_UINT (GPOINTER_TO_UINT (client)),
- DLT_STRING (", bus name "),
+ DLT_STRING ("bus name"),
DLT_STRING (shutdown_client_get_bus_name (client)),
- DLT_STRING (", object path "),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (", shutdown mode "),
+ DLT_STRING ("shutdown mode"),
DLT_UINT (service->shutdown_queue->current_mode),
- DLT_STRING (", error status "),
+ DLT_STRING ("error status"),
DLT_UINT (error_code));
/* remove the client it from the shutdown queue */
if (service->shutdown_queue->timeout_request == GPOINTER_TO_UINT (client))
{
DLT_LOG (nsm_dummy_context, DLT_LOG_WARN,
- DLT_STRING ("Received timeout while shutting down a client: "),
- DLT_STRING ("bus name "),
+ DLT_STRING ("Received timeout while shutting down a client:"),
+ DLT_STRING ("bus name"),
DLT_STRING (shutdown_client_get_bus_name (client)),
- DLT_STRING (", object path "),
+ DLT_STRING ("object path"),
DLT_STRING (shutdown_client_get_object_path (client)),
- DLT_STRING (", shutdown mode "),
+ DLT_STRING ("shutdown mode"),
DLT_UINT (shutdown_client_get_shutdown_mode (client)),
- DLT_STRING (", timeout "),
+ DLT_STRING ("timeout"),
DLT_UINT (shutdown_client_get_timeout (client)),
- DLT_STRING (", request id "),
+ DLT_STRING ("request id"),
DLT_UINT (service->shutdown_queue->timeout_request));
/* it is, so we haven't receive da reply in time; drop the
/* log information about the watchdog timeout using DLT */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Updating the systemd watchdog timestamp every "),
- DLT_UINT (watchdog_sec), DLT_STRING (" seconds"));
+ DLT_STRING ("Updating the systemd watchdog timestamp every"),
+ DLT_UINT (watchdog_sec), DLT_STRING ("seconds"));
}
/* install the signal handler */
{
/* log how we handled the node state */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Node state "), DLT_INT (node_state_id),
- DLT_STRING (" applied: "),
+ DLT_STRING ("Node state"), DLT_INT (node_state_id),
+ DLT_STRING ("applied:"),
DLT_STRING (service->accept_state ? "yes" : "no"));
/* alternate return value between successful(0) and fail(-1) with every handled call.
{
/* log how we handled the node state */
DLT_LOG (nsm_dummy_context, DLT_LOG_INFO,
- DLT_STRING ("Received an invalid node state: "), DLT_INT (node_state_id));
+ DLT_STRING ("Received an invalid node state:"), DLT_INT (node_state_id));
/* let the caller know that it sent an invalid parameter */
error_code = NSM_ERROR_STATUS_PARAMETER;