From c5fac27bc8a14acebe85adea47dbc92e405bee3a Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 7 Mar 2017 22:17:52 +0100 Subject: [PATCH] Fix some compiler warnings --- src/suunto_eonsteel.c | 2 +- src/suunto_eonsteel_parser.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index 4f48bc8..213f27a 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -140,7 +140,7 @@ static int receive_packet(suunto_eonsteel_device_t *eon, unsigned char *buffer, return -1; } if (transferred != PACKET_SIZE) { - ERROR(eon->base.context, "incomplete read interrupt transfer (got %d, expected %d)", transferred, PACKET_SIZE); + ERROR(eon->base.context, "incomplete read interrupt transfer (got %zu, expected %d)", transferred, PACKET_SIZE); return -1; } if (buf[0] != 0x3f) { diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 72c0dd5..653ab5e 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -239,7 +239,7 @@ static int fill_in_group_details(suunto_eonsteel_parser_t *eon, struct type_desc } base = eon->type_desc + index; if (!base->desc) { - ERROR(eon->base.context, "Group type descriptor '%s' has undescribed index %d", desc->desc, index); + ERROR(eon->base.context, "Group type descriptor '%s' has undescribed index %ld", desc->desc, index); break; } if (!base->size) { @@ -267,7 +267,7 @@ static int fill_in_group_details(suunto_eonsteel_parser_t *eon, struct type_desc grp = end+1; continue; default: - ERROR(eon->base.context, "Group type descriptor '%s' has unparseable index %d", desc->desc, index); + ERROR(eon->base.context, "Group type descriptor '%s' has unparseable index %ld", desc->desc, index); return -1; } }