summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.c
diff options
context:
space:
mode:
authorSebastian Kloska <sebastian.kloska@snafu.de>2019-10-10 16:02:06 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-10-10 23:27:31 +0900
commit5e381162a944ffd0b7780175adf9670a1acbd491 (patch)
treeb49ac3112acaa79003824f98a16dc1ce32c58f4c /src/daemon/dlt_daemon_common.c
parentda36b5b4fe7a25da4a272618db67601c0f6e3d3a (diff)
downloadDLT-daemon-5e381162a944ffd0b7780175adf9670a1acbd491.tar.gz
Fix: Propper usage of LoggingMode: "uncrustification"
Signed-off-by: Sebastian Kloska <sebastian.kloska@snafu.de>
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rw-r--r--src/daemon/dlt_daemon_common.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c
index 49716c4..195c55f 100644
--- a/src/daemon/dlt_daemon_common.c
+++ b/src/daemon/dlt_daemon_common.c
@@ -145,13 +145,13 @@ int dlt_daemon_load_runtime_configuration(DltDaemon *daemon, const char *runtime
{
int append_length = 0;
- if ( daemon == NULL )
+ if (daemon == NULL)
return DLT_RETURN_ERROR;
- // Default
+ /* Default */
daemon->mode = DLT_USER_MODE_EXTERNAL;
- if ( runtime_directory == NULL )
+ if (runtime_directory == NULL)
return DLT_RETURN_ERROR;
/* prepare filenames for configuration */
@@ -377,8 +377,6 @@ int dlt_daemon_applications_clear(DltDaemon *daemon, char *ecu, int verbose)
user_list->applications[i].application_description = NULL;
}
-
-
if (user_list->applications != NULL)
free(user_list->applications);
@@ -1064,8 +1062,6 @@ int dlt_daemon_contexts_clear(DltDaemon *daemon, char *ecu, int verbose)
users->contexts[i].context_description = NULL;
}
-
-
if (users->contexts) {
free(users->contexts);
users->contexts = NULL;
@@ -1500,12 +1496,11 @@ void dlt_daemon_user_send_default_update(DltDaemon *daemon, int verbose)
if (context != NULL) {
if ((context->log_level == DLT_LOG_DEFAULT) ||
(context->trace_status == DLT_TRACE_STATUS_DEFAULT)) {
- if (context->user_handle >= DLT_FD_MINIMUM) {
+ if (context->user_handle >= DLT_FD_MINIMUM)
if (dlt_daemon_user_send_log_level(daemon,
context,
verbose) == -1)
dlt_vlog(LOG_WARNING, "Cannot update default of %.4s:%.4s\n", context->apid, context->ctid);
- }
}
}
}
@@ -1605,10 +1600,9 @@ void dlt_daemon_user_send_all_log_state(DltDaemon *daemon, int verbose)
app = &(user_list->applications[count]);
if (app != NULL) {
- if (app->user_handle >= DLT_FD_MINIMUM) {
+ if (app->user_handle >= DLT_FD_MINIMUM)
if (dlt_daemon_user_send_log_state(daemon, app, verbose) == -1)
dlt_vlog(LOG_WARNING, "Cannot send log state to Apid: %.4s, PID: %d\n", app->apid, app->pid);
- }
}
}
}