diff options
author | Francesco Montefoschi <francesco.monte@gmail.com> | 2020-04-29 11:43:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 18:43:45 +0900 |
commit | 179150f7d52abbb1d923da0c35d4a715ade382b0 (patch) | |
tree | bda3c81f000394d082b3a86c41668db9ff77628a | |
parent | b04d0e3157a8a0574d303f406f95ea2a67165012 (diff) | |
download | DLT-daemon-179150f7d52abbb1d923da0c35d4a715ade382b0.tar.gz |
Fixed empty internal message in dlt-daemon.c (#225)
`dlt_daemon_log_internal` is called with with a null `local_str`.
This has been introduced by mistake during a code refactoring.
Code has been reverted to the previous version:
https://github.com/GENIVI/dlt-daemon/commit/bfa7026b355db32d91374997cc86b56fedc3e861
Signed-off-by: Francesco Montefoschi <francesco.montefoschi@artgroup-spa.com>
-rw-r--r-- | src/daemon/dlt-daemon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index b2d3668..e872413 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -1772,9 +1772,11 @@ int dlt_daemon_process_client_connect(DltDaemon *daemon, daemon_local->flags.vflag); } - dlt_vlog(LOG_DEBUG, + snprintf(local_str, + DLT_DAEMON_TEXTBUFSIZE, "New client connection #%d established, Total Clients : %d\n", in_sock, daemon_local->client_connections); + dlt_log(LOG_DEBUG, local_str); dlt_daemon_log_internal(daemon, daemon_local, local_str, daemon_local->flags.vflag); if (daemon_local->client_connections == 1) { |