From cc4d1e04fe4a8b57b137c347ad9fd66166b6250a Mon Sep 17 00:00:00 2001 From: Radek Kaczorowski Date: Tue, 5 Oct 2021 04:04:24 +0200 Subject: fix malformed printf format strings (#295) Co-authored-by: Saya Sugiura <39760799+ssugiura@users.noreply.github.com> --- src/daemon/dlt_daemon_event_handler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/daemon/dlt_daemon_event_handler.c') diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c index 0d463da..db5767a 100644 --- a/src/daemon/dlt_daemon_event_handler.c +++ b/src/daemon/dlt_daemon_event_handler.c @@ -246,7 +246,7 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent, callback = dlt_connection_get_callback(con); if (!callback) { - dlt_vlog(LOG_CRIT, "Unable to find function for %d handle type.\n", + dlt_vlog(LOG_CRIT, "Unable to find function for %u handle type.\n", type); return -1; } @@ -256,7 +256,7 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent, daemon_local, con->receiver, daemon_local->flags.vflag) == -1) { - dlt_vlog(LOG_CRIT, "Processing from %d handle type failed!\n", + dlt_vlog(LOG_CRIT, "Processing from %u handle type failed!\n", type); return -1; } @@ -402,7 +402,7 @@ int dlt_connection_check_activate(DltEventHandler *evhdl, case ACTIVE: if (activation_type == DEACTIVATE) { - dlt_vlog(LOG_INFO, "Deactivate connection type: %d\n", con->type); + dlt_vlog(LOG_INFO, "Deactivate connection type: %u\n", con->type); dlt_event_handler_disable_fd(evhdl, con->receiver->fd); @@ -416,7 +416,7 @@ int dlt_connection_check_activate(DltEventHandler *evhdl, case INACTIVE: if (activation_type == ACTIVATE) { - dlt_vlog(LOG_INFO, "Activate connection type: %d\n", con->type); + dlt_vlog(LOG_INFO, "Activate connection type: %u\n", con->type); dlt_event_handler_enable_fd(evhdl, con->receiver->fd, @@ -427,7 +427,7 @@ int dlt_connection_check_activate(DltEventHandler *evhdl, break; default: - dlt_vlog(LOG_ERR, "Unknown connection status: %d\n", con->status); + dlt_vlog(LOG_ERR, "Unknown connection status: %u\n", con->status); return -1; } -- cgit v1.2.1