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_event_handler.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_event_handler.c')
-rw-r--r-- | src/daemon/dlt_daemon_event_handler.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c index 38aa022..b2af56b 100644 --- a/src/daemon/dlt_daemon_event_handler.c +++ b/src/daemon/dlt_daemon_event_handler.c @@ -187,7 +187,6 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent, { int ret = 0; unsigned int i = 0; - char str[DLT_DAEMON_TEXTBUFSIZE] = { '\0' }; int (*callback)(DltDaemon *, DltDaemonLocal *, DltReceiver *, int) = NULL; if ((pEvent == NULL) || (daemon == NULL) || (daemon_local == NULL)) @@ -249,11 +248,8 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent, callback = dlt_connection_get_callback(con); if (!callback) { - snprintf(str, - DLT_DAEMON_TEXTBUFSIZE, - "Unable to find function for %d handle type.\n", + dlt_vlog(LOG_CRIT, "Unable to find function for %d handle type.\n", type); - dlt_log(LOG_CRIT, str); return -1; } @@ -262,11 +258,8 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent, daemon_local, con->receiver, daemon_local->flags.vflag) == -1) { - snprintf(str, - DLT_DAEMON_TEXTBUFSIZE, - "Processing from %d handle type failed!\n", + dlt_vlog(LOG_CRIT, "Processing from %d handle type failed!\n", type); - dlt_log(LOG_CRIT, str); return -1; } } |