diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-05-29 17:58:37 +0900 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-06-19 11:00:37 +0900 |
commit | 9cf8c10a22542ce784c383d7e371797c4b9910ac (patch) | |
tree | b43fb9e5692e8354dc203fc382c3263d7876ad40 /src/daemon/dlt_daemon_connection.c | |
parent | 6088448cdfe3cd152c53136544acc4ee7a508a84 (diff) | |
download | DLT-daemon-9cf8c10a22542ce784c383d7e371797c4b9910ac.tar.gz |
cleanup: Use dlt_vlog()
There were a couple of places which used snprintf-dlt_log. It is
now replaced with dlt_vlog().
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_connection.c')
-rw-r--r-- | src/daemon/dlt_daemon_connection.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/daemon/dlt_daemon_connection.c b/src/daemon/dlt_daemon_connection.c index b1a4080..7973b9c 100644 --- a/src/daemon/dlt_daemon_connection.c +++ b/src/daemon/dlt_daemon_connection.c @@ -390,13 +390,8 @@ int dlt_connection_create(DltDaemonLocal *daemon_local, temp->receiver = dlt_connection_get_receiver(daemon_local, type, fd); if (!temp->receiver) { - char local_str[DLT_DAEMON_TEXTBUFSIZE]; - snprintf(local_str, - DLT_DAEMON_TEXTBUFSIZE, - "Unable to get receiver from %d connection.\n", + dlt_vlog(LOG_CRIT, "Unable to get receiver from %d connection.\n", type); - - dlt_log(LOG_CRIT, local_str); free(temp); return -1; } |