Fix some compiler warnings
This commit is contained in:
parent
57ffb2ba7a
commit
c5fac27bc8
@ -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) {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user