From a0a44c3e321f756b1f093fd3ff4011031db59915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Kry=C5=84ski?= Date: Sun, 1 Dec 2024 11:25:44 +0100 Subject: [PATCH] fix int sizes --- components/canbus_udp_multicast/canbus_udp_multicast.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/canbus_udp_multicast/canbus_udp_multicast.cpp b/components/canbus_udp_multicast/canbus_udp_multicast.cpp index 534f999..9b7799d 100644 --- a/components/canbus_udp_multicast/canbus_udp_multicast.cpp +++ b/components/canbus_udp_multicast/canbus_udp_multicast.cpp @@ -70,7 +70,7 @@ bool CanbusUdpMulticast::decode_can_frame(uint8_t *buffer, size_t len, struct ca if (cmp_read_map(&cmp, &map_size)) { int32_t num; - ESP_LOGV(TAG, "map_size: %d", map_size); + ESP_LOGV(TAG, "map_size: %u", map_size); char key[33]; for (n = 0; n < map_size; n++) { uint32_t size = 32; @@ -78,14 +78,14 @@ bool CanbusUdpMulticast::decode_can_frame(uint8_t *buffer, size_t len, struct ca ESP_LOGV(TAG, "key: %s", key); if (!strncmp(key, "arbi", 4)) { if (cmp_read_int(&cmp, (int32_t *) &frame->can_id)) { - ESP_LOGV(TAG, " %s: %ld", key, frame->can_id); + ESP_LOGV(TAG, " %s: %u", key, frame->can_id); } else break; } else if (!strncmp(key, "data", 4)) { uint32_t size = 64; if (cmp_read_bin(&cmp, frame->data, &size)) { data_size = size; - ESP_LOGV(TAG, " data size: %ld", size); + ESP_LOGV(TAG, " data size: %u", size); } else break; } else if (!strcmp(key, "is_extended_id")) {